title: Ansible - Print message - debug: msg="line1 \n {{ var2 }} \n line3 with var3 = {{ var3 }}"
body: <p>In Ansible (1.9.4) or 2.0.0</p>
  
  <p>I ran the following action:</p>
  
  <pre><code>- debug: msg="line1 \n {{ var2 }} \n line3 with var3 = {{ var3 }}"
  </code></pre>
  
  <p><strong>$ cat roles/setup_jenkins_slave/tasks/main.yml</strong></p>
  
  <pre><code>- debug: msg="Installing swarm slave = {{ slave_name }} at {{ slaves_dir }}/{{ slave_name }}"
    tags:
      - koba
  
  - debug: msg="1 == Slave properties = fsroot[ {{ slave_fsroot }} ], master[ {{ slave_master }} ], connectingToMasterAs[ {{ slave_user }} ], description[ {{ slave_desc }} ], No.Of.Executors[ {{ slave_execs }} ], LABELs[ {{ slave_labels }} ], mode[ {{ slave_mode }} ]"
    tags:
      - koba
  
  
  - debug: msg="print(2 == Slave properties = \n\nfsroot[ {{ slave_fsroot }} ],\n master[ {{ slave_master }} ],\n connectingToMasterAs[ {{ slave_user }} ],\n description[ {{ slave_desc }} ],\n No.Of.Executors[ {{ slave_execs }} ],\n LABELs[ {{ slave_labels }} ],\n mode[ {{ slave_mode }} ])"
    tags:
      - koba
  </code></pre>
  
  <p>But this is not printing the variable with new lines (for the 3rd debug action)?</p>