Hi!
After reading the docs, dozens of group messages and several articles, I 
can't find the way to locate  playbooks in subdirs.
I'm having a large, complex project to deploy several and different 
installations in multiple hosts, and the amount of playbooks are growing 
up. 
At this moment, everything works fine with my playbooks located at 
project's root folder, but I'd like a little more organization
So I decided to create a *playbooks* folder and move them in some 
subdirectories inside.
Following this repository 
<https://github.com/enginyoyen/ansible-best-practises> guideline, I created 
an ansible.cfg file with role_path=../roles

This is my folder (re)structure

project
       |_ inventory
       |_ playbooks
               |_ ansible.cfg
               |_ webservers.yml
               |_ databases.yml
       |_ roles
               |_ nginx
               |_ php
               |_ mysql
            

But when I run
> ansible-playbook -i inventory plays/webservers.yml

it throws the error

ERROR! the role 'nginx' was not found in 
/Users/max/Work/project/playbooks/roles:/Users/max/Work/project/playbooks:/etc/ansible/roles

It seems that the role_path is not working, and I don't have any more ideas-
So my question is: is there a way to achieve subfolder organization to 
playbooks?

Thanks a lot for any help!
Max


-- 
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/ea0b6ac1-7755-439a-ba19-78f7c7c873f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to