When running the test.yml from the install documentation, I am expecting “Ansible Works” but I get the following message
msg: No fact modules available and we could not find a fact module for your network OS (None), try setting one via the `FACTS_MODULES` configuration.
No other jobs work as well. The CPU is a snapdragon and I have an identical machine using the same configuration with the same install process and it works fine. Any Ideas? Google has failed me.
Looks like you have some connection configured other than ssh, so that you should have a network os. Can you post the playbook you’re trying to run, as well as your Ansible configuration?
I get the same error even with connection local and none of my other playbooks run. They all get the same error whether using local connections, ssh or httapi
Works with fact gathering off for the test but all other jobs are still failing.
I have an IDENTICAL machine where it works with fact gathering so something is off. I just can’t figure out what. I think I am going to try the APT install instead of PIP and see if there are any changes.
Sounds good, curious on what the issue is. I’m running WSL 2 with Ubuntu 22.04, Ansible 2.17.2 and python 3.10.12. Had to go back in my history and it looks like I used the APT method of installing it.
Using connection: local is almost always wrong, it won’t break normally but people make incorrect assumptions on how it works and/or interacts with localhost.
@bcoca do you happen to have a link to a doc that explains the “connection: local” functionality? We’ve been using it for a while now but that sounds like more of our ignorance/luck then it being correct. I don’t want to hijack dpflick’s thread so I can start a new one if needed. Thanks!
connection: local was mostly used in very old version of Ansible for networking modules, since they didn’t really execute on the target and it didn’t matter much that being ‘slightly incorrect’ they would still work as you would not manipulate the ‘python interpreter’ for those targets. This becomes a problem in heterogeneous contexts in which you are targeting execution with normal modules, which do take the interpreter into account.
FIXED
Soooo, for my ARM64 issue, it was not architecture at all! 2 issues total. Issue 1, 2.17.9 is broken with get facts. Known issue and rolled back to 2.17.7. Second issue of all things was an errant /t in the group_vars\all.yml. It has been there for years but Ansible >2.17.7 blows up spectacularly.