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.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4859aec8-d135-45c5-a559-1d2148483eff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.