<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.7.2</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Debian Sid</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Using the gist at <a href="https://gist.github.com/anonymous/dc1de03995dc9ae147af">https://gist.github.com/anonymous/dc1de03995dc9ae147af</a> in ansible 1.7.1 correctly forces a line with <code class="notranslate">synchronous_standby_names=''</code> in it.</p>
<p dir="auto">With 1.7.2, it enforces a line with <code class="notranslate">synchronous_standby_names=</code>.</p>
<p dir="auto">I have confirmed it is definitely a difference between 1.7.1 &amp; 1.7.2 by swapping between:<br>
sudo dpkg -i /var/cache/apt/archives/ansible_1.7.1+dfsg-1_all.deb<br>
sudo dpkg -i /var/cache/apt/archives/ansible_1.7.2+dfsg-1_all.deb</p>
<p dir="auto">Looking at the patches debian applies, that shouldn't be related. Time for a git bisect!</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Use the task in the linked gist.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">A line with <code class="notranslate">synchronous_standby_names=''</code> should appear in the file.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto"><code class="notranslate">synchronous_standby_names=</code> appears in the file.</p>
<h5 dir="auto">Issue Type: Bug Report</h5>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">$ ansible --version<br>
ansible 1.8 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/b7082677de3ac85e166ad0780cf7a2adc75fcff1/hovercard" href="https://github.com/ansible/ansible/commit/b7082677de3ac85e166ad0780cf7a2adc75fcff1"><tt>b708267</tt></a>) last updated 2014/08/28 11:27:43 (GMT -700)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">OS X Mavericks 10.9.4</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">using the word import and a single quote within the lineinfile module places single quotes within double quotes<br>
lineinfile: dest=/tmp/myline.txt line="import g'" create=yes<br>
produces:<br>
import g'"'"'</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">$ cat playtest.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: 127.0.0.1
  connection: local
  tasks:
  - name: append line with single quotes and double quotes
    lineinfile: dest=/tmp/myline.txt line=&quot;import g'&quot; create=yes"><pre class="notranslate"><code class="notranslate">
---
- hosts: 127.0.0.1
  connection: local
  tasks:
  - name: append line with single quotes and double quotes
    lineinfile: dest=/tmp/myline.txt line="import g'" create=yes
</code></pre></div>
<p dir="auto">run it like this: ansible-playbook playtest.yml<br>
$ ansible-playbook playtest.yml &amp;&amp; cat /tmp/myline.txt &amp;&amp; rm -f /tmp/myline.txt</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">file /tmp/myline.txt should contain this line<br>
import g'</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">file /tmp/myline.txt contains this line<br>
import g'"'"'</p>