<h4 dir="auto">Issue Type:</h4>
<p dir="auto">Bug Report</p>
<h4 dir="auto">Ansible Version:</h4>
<p dir="auto">1.7.2</p>
<h4 dir="auto">Environment:</h4>
<p dir="auto">N/A</p>
<h4 dir="auto">Summary:</h4>
<p dir="auto">when using copy module with inline content="{{myvar}}" where myvar is multiline variable, newlines in the destination files got duplicated.</p>
<h4 dir="auto">Steps to reproduce</h4>
<p dir="auto">Example playbook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: all
  vars:
    multiline: |
       line1
       line2
       line3

  tasks:
    - local_action: copy dest=/tmp/output content=&quot;{{multiline}}&quot;"><pre class="notranslate"><code class="notranslate">
---
- hosts: all
  vars:
    multiline: |
       line1
       line2
       line3

  tasks:
    - local_action: copy dest=/tmp/output content="{{multiline}}"
</code></pre></div>
<p dir="auto">Run as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -c local -i &quot;127.0.0.1,&quot; content_newlines.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -c local -i "127.0.0.1," content_newlines.yml
</code></pre></div>
<h4 dir="auto">Expected result</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /tmp/output
line1
line2
line3"><pre class="notranslate"><code class="notranslate">$ cat /tmp/output
line1
line2
line3
</code></pre></div>
<h4 dir="auto">Actual results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /tmp/output
line1

line2

line3
"><pre class="notranslate"><code class="notranslate">$ cat /tmp/output
line1

line2

line3

</code></pre></div>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.5.3 (release1.5.3 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/157b783521b52d9c3f357e811f6be0ec7600a89e/hovercard" href="https://github.com/ansible/ansible/commit/157b783521b52d9c3f357e811f6be0ec7600a89e"><tt>157b783</tt></a>) last updated 2014/03/27 15:54:18 (GMT +200)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">CentOS 6</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">When I initialize a variable of type list "tmcAdmin_Update_Notify" ansible the action that triggers the notification causes an error:</p>
<p dir="auto">ERROR: change handler (['handler_1', 'handler_2']) is not defined</p>
<p dir="auto">What is the syntax to set a variable as the one below in the notify:<br>
my_var:<br>
   - handler_1<br>
   - handler_2</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">ansible-playbook -i hosts --limit=bt1sssbg site.yml -t tmcAdmin --verbose</p>
<h2 dir="auto">site.yml file :</h2>
<ul dir="auto">
<li>
<p dir="auto">hosts: testbedUH</p>
<p dir="auto">vars:<br>
tmcAdmin_Update_Notify:</p>
<ul dir="auto">
<li>handler_1</li>
<li>handler_2</li>
</ul>
<p dir="auto">tasks:</p>
<ul dir="auto">
<li>include: tmcAdmin.yml<br>
tags: tmcAdmin</li>
</ul>
<p dir="auto">handlers:</p>
<ul dir="auto">
<li>name: handler_1<br>
action: shell echo "handler_1"<br>
tags: tmcAdmin</li>
<li>name: handler_2<br>
action: shell echo "handler_2"<br>
tags: tmcAdmin</li>
</ul>
</li>
</ul>
<h2 dir="auto">tmcAdmin.yml</h2>
<h1 dir="auto">Actions :</h1>
<ul dir="auto">
<li>name: Besoin mettre a jour composant TMC_ADMIN<br>
action: bytel-installer name=TMC_ADMIN version={{ TMC_ADMIN_version }} state=updated path={{ ansibleTemp_path }} args="-t {{ tomcatVersion }}"<br>
notify: $tmcAdmin_Update_Notify</li>
</ul>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">No error :)</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">ERROR: change handler (['handler_1', 'handler_2']) is not defined</p>