When setting up roles I have the following:
/etc/ansible/roles # tree aliases/ -L 1
aliases/
├── defaults
├── handlers
├── main.yml
├── meta
├── README.md
├── tasks
├── tests
└── vars
The main.yml has the following content:
---
- hosts: "{{ host }}"
gather_facts: no
roles:
- aliases
This has worked fine for me up to this point, however, ansible TOWER excludes the roles, tasks, and hidden files/dirs from import.... meaning, that in order to utilize roles within tower I have to create a playbook outside of the roles directory to call it (ie /etc/ansible/call_my_role.yml
This makes me wonder what best practices are regarding roles and calling them. I don't want to do it as described in the previous line but don't know if I have an option. Thoughts? I haven't seen much in the docs.