title: Ansible callback plugin: how to get a task name with variables in it expanded?
body: <p>I have a play below that contains a task with a name that has a variable in it.</p>
  
  <pre><code>hosts:        localhost
  connection:   local
  vars:
    a_variable: test
  tasks:
    - name:     this is a task to echo {{ a_variable }}
      shell:    echo {{ a_variable }}
  </code></pre>
  
  <p>When this is run on the command line, the stdout shows the task name with variable resolved/expanded to its value which is <code>this is a task to echo test</code></p>
  
  <p>However, when I try to access the task name in the callback plugin using the properties task.name or result._task.name, the name returned is <code>this is a task to echo {{ a_variable }}</code> where the variable is not expanded.</p>
  
  <p>How can I get the task name as it is printed on stdout with the variable expanded?</p>