0

I willing to get a list of variables for the host using ansible all -m system and keep getting an error:

The module system was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git pull --rebase' to correct this problem.

What is the default directory for the module files?

0

Listing variables for a host would be done using the setup module:

$ ansible -m setup 127.0.0.1
127.0.0.1 | SUCCESS => {
    "ansible_facts": {
        "ansible_all_ipv4_addresses": [
            "10.255.42.178", 
            "10.255.0.1"
        ], 
...

Note there is no module named system: system is a group of Ansible modules.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.