Rename roles/rolename/tasks/main.yml to rolename.yml in Ansible -


by default, ansible looks tasks role in main.yml. have many main.yml files , i'd rename rolename.yml or more unique. how can change ansible's default behavior use rolename.yml instead of tasks/main.yml?

as bruce pointed out hardcoded. have issue behavior well, ide displays filename in tab , used have bazillion tabs named "main.yml".

my standard setup have 2 files:

  • main.yml
  • role-name.yml

in main.yml include task role-name.yml. along include handle tags, because want roles tagged name.

---  - include: role-name.yml   tags: role-name  ... 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -