The ansible.cfg doesn't seem to be working either. I added the following to ansible.cfg
enable_plugins = 'host_list', 'script', 'yaml' and now I see these errors: ansible all -i inventory/ --list-hosts [WARNING]: Failed to load inventory plugin, skipping 'host_list' > [WARNING]: Failed to load inventory plugin, skipping 'script' > [WARNING]: Failed to load inventory plugin, skipping 'yaml' > ERROR! No inventory plugins available to generate inventory, make sure you > have at least one whitelisted. On Tuesday, September 19, 2017 at 12:40:02 PM UTC-7, senorsmile wrote: > > As specified here: > > https://github.com/ansible/ansible/issues/25321 > > we must now specify the inventory type, making yaml based inventory a > higher precedence. > > > I found the new cli env vars here: > > https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/config/base.yml > > > I'm trying to override this via the env var to no avail: > > ANSIBLE_INVENTORY_ENABLED='script,yaml,ini' ansible web1 -i inventory/ -m > raw -a uptime > > If I put garbage in there, it shows that it's loading them though: > > ANSIBLE_INVENTORY_ENABLED='[a,i,o]' ansible web1 -i inventory/ -m raw -a > uptime > > >> [WARNING]: Failed to load inventory plugin, skipping [a >> [WARNING]: Failed to load inventory plugin, skipping i >> [WARNING]: Failed to load inventory plugin, skipping o] > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/43c44cd8-22ac-4d3d-9820-25beb42ace02%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
