Is there a magic variable to know which role a task is part of?
I'd like to do something like this inside a role/*/tasks/main.yml:
- name: ${role} create conf directory
command: mkdir /opt/${role}/conf
Is there a magic variable to know which role a task is part of?
I'd like to do something like this inside a role/*/tasks/main.yml:
- name: ${role} create conf directory
command: mkdir /opt/${role}/conf
No.