Based on ansible documentation for roles I can make multiple role entry points by creating files:
playbooks/roles/my_role/tasks/main.yml
playbooks/roles/my_role/tasks/other.yml
And I can add the default main.yml
role using this code:
---
- name: Example 1
hosts: <hostnames>
roles:
- my_role
But how can I use the other.yml
entrypoint?
I would expect it to be something like this, but none of those work:
---
- name: Example 1
hosts: <hostnames>
roles:
- my_role:other
- my_role/other
- my_role.other