Storing and finding roles
By default, Ansible looks for roles in the following locations:
in collections, if you are using themin a directory calledroles/, relative to the playbook filein the configuredroles_path. The default search path is~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles.in the directory where the playbook file is located
If you store your roles in a different location, set theroles_pathconfiguration option so Ansible can find your roles. Checking shared roles into a single location makes them easier to use in multiple playbooks. SeeConfiguring Ansiblefor details about managing settings inansible.cfg.
Alternatively, you can call a role with a fully qualified path: