site.yml file location and roles

All,

Is it possible to have the site.yml file and hosts file in a subdirectory like this:

root/
group_vars/
roles


sites/
office_name/
hosts
site.yml

When I tried to do this with ansible-playbook sites/office_name/hosts -i sites/office_name/site.yml
I got an error message about being unable to find roles.

Do I need to change the roles_path setting - or is this not possible.
The reason is for a shared project with multiple sites and I dont want everything at the top level.

Cheers
Dan

Read the documentation about setting the roles path in ansible.cfg or via environment variables.

It doesn’t know how to climb up and find your roles, basically.