I think I found a workaround.

ansible looks for ansible.cfg in the current working directory, before 
looking in ~/.ansible.cfg or /etc/ansible.cfg

So I can include within the playbook directory:

inventory = ./hosts
roles_path = ../shared/roles

This works as long as the user does:

cd path/to/playbook
ansible-playbook playbook.yml

rather than:

ansible-playbook path/to/playbook/playbook.yml

(However I'd still like to be able to set roles_path within a playbook, 
this would be a cleaner solution)



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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to