The items should NOT have quotes around them. Now I get the same as setting the env var from the cli:
[WARNING]: Unable to parse > /Users/shaun_smiley/Seafile/scripts/ansible/yaml_inventory/inventory/backend/nodes.yml > > as an inventory source On Tuesday, September 19, 2017 at 1:03:12 PM UTC-7, senorsmile wrote: > > 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/21647826-efa6-4f47-bf6e-8b370bb2380e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
