title: ANSIBLE - Handlers listen
body: <p>Really short question. I just wanted to know why when we use handlers the &quot;listen&quot; section doesn't take variable?</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: notify components 
    command: echo &quot;this task will notify all the components&quot;
    notify: &quot;hello world&quot;
  </code></pre>
  <pre class="lang-yaml prettyprint-override"><code>- debug:
      msg: &quot;Hello world !!&quot;
    listen: &quot;hello world&quot;
  
  - set_fact:
      myvar: &quot;hello world&quot;
    listen: &quot;hello world&quot;
  
  - debug:
      msg: &quot;Hello world !! with var&quot;
    listen: &quot;{{myvar}}&quot;
  </code></pre>
  <p>Why this section doesn't work? Listen doesn't take variables?</p>