Roles — Ansible Documentation
docs.ansible.com › playbooks_reuse_rolesDec 21, 2021 · By default, Ansible looks for roles in two locations: in a directory called roles/, relative to the playbook file in /etc/ansible/roles If you store your roles in a different location, set the roles_path configuration option so Ansible can find your roles. Checking shared roles into a single location makes them easier to use in multiple playbooks.
Search paths in Ansible — Ansible Documentation
docs.ansible.com › playbook_pathingDec 09, 2021 · You can control the paths Ansible searches to find resources on your control node (including configuration, modules, roles, ssh keys, and more) as well as resources on the remote nodes you are managing. Use absolute paths to tell Ansible where to find resources whenever you can. However, absolute paths are not always practical.