title: How to get current role name in an ansible task
body: <p>How can I get the current role name in an ansible task yaml file?</p>
  
  <p>I would like to do something like this</p>
  
  <pre><code>---
  # role/some-role-name/tasks/main.yml
  
  - name: Create a directory which is called like the current role name
    action: file
            path=/tmp/"{{ role_name }}"
            mode=0755
            state=directory
  </code></pre>
  
  <p>The result of this task should be a directory <code>/tmp/some-role-name</code> on the server</p>