title: Ansible playbook: print a message
body: <p>Probably this has been asked before but can't find anything helpful yet.</p>
  
  <p>I have this task:</p>
  
  <pre><code> - name: Create folder if not exists
     win_file:
       path: '{{ folder }}'
       state: directory
     when: my_dir.stat.exists == false &lt;&lt; this stat has been previously created
  
   - Debug: msg"folder already exists"
  </code></pre>
  
  <p>If I execute this the output in Ans. tower looks like this (the folder already exists):</p>
  
  <pre><code>TASK [playbook : Create folder if not exists] ***
  17:51:00
  23
  skipping: [host]
  
  
  TASK [playbook : debug]    ***************************************
  18:16:07
  26
  ok: [host] =&gt; {
  27
  "msg": "Folder already exists"
  </code></pre>
  
  <p>Ik want this msg to be printed in the Create folder task and not in a separate task. </p>
  
  <p>Help would be appreciated </p>