How can I get the current role name in an ansible task yaml file?
I would like to do something like this
--- # role/some-role-name/tasks/main.yml - name
As of Ansible 2.8 there is ansible_play_name which contains the name of the currently executed play.
ansible_play_name