I think you are misusing the directives:

- hosts: /ansible/hosts <= this will NOT use that file as inventory
for the play.

The hosts keyword is supposed to be a 'pattern', not a file nor
inventory source.

to use that as your inventory you can do:
ansible-playbook  /ansible/playbook/test.yml -i /ansible/hosts

and set hosts: to 'all'

- hosts: all


-- 
----------
Brian Coca

-- 
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/CACVha7e9-yW-xCBh99O3Fb%2B%3DkytJMXs5T0KxUymPG_iJ5Leauw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to