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: [defaults] 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) Regards, Brian. -- 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/8ee483b8-d4c1-4e2a-b1fa-7a4bc9241abb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
