putting playbooks in subfolders while using roles

Hi,

I have many playbooks using several roles. The directory layout is:

playbooks/

  • playbook1.yml
  • playbook2.yml
  • roles/
  • role1/…
  • role2/…

This is working nicely.

However, I’d like to be able to group playbooks in different folders, something like:

playbooks/

  • p1/
  • playbook1.yml
  • playbook11.yml
  • p2/
  • playbook2.yml
  • playbook2.yml

but having all of them share the same roles herarchy. This is not working because roles/ folders are looked for in the same directory as the playbook been run.
Is there a cleaner way of doing things than having symbolic links from all playbook subfolders to the roles subfolder ?

Thanks for your help!

You can include the role with a relative path like “…/roles”

Also in 1.4 the roles path is configurable too, so you can keep roles in one global location if you like.