<h5 dir="auto">Issue Type: Bug report</h5>
<h5 dir="auto">Ansible Version: 1.6.6</h5>
<h5 dir="auto">Environment: OS X 10.9.4</h5>
<h5 dir="auto">Summary: Duplicate entires in output</h5>
<h5 dir="auto">Steps To Reproduce: Used "when" conditional for variable</h5>
<h5 dir="auto">Expected Results: For ansible to be able to parse and act upon result of testing variable</h5>
<h5 dir="auto">Actual Results: Duplicate info in error message:</h5>
<p dir="auto">ERROR: Syntax Error while loading YAML script, roundcube.yml<br>
Note: The error may actually appear before this position: line 129, column 28</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="command: /usr/sbin/setsebool -P httpd_can_network_connect_db 1
when: &quot;{{rc_db_host}}&quot; == &quot;localhost&quot;
                       ^"><pre class="notranslate"><code class="notranslate">command: /usr/sbin/setsebool -P httpd_can_network_connect_db 1
when: "{{rc_db_host}}" == "localhost"
                       ^
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
unbalanced quotes.  If starting a value with a quote, make sure the<br>
line ends with the same set of quotes.  For instance this arbitrary<br>
example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: &quot;bad&quot; &quot;wolf&quot;"><pre class="notranslate"><code class="notranslate">foo: "bad" "wolf"
</code></pre></div>
<p dir="auto">Could be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: '&quot;bad&quot; &quot;wolf&quot;'"><pre class="notranslate"><code class="notranslate">foo: '"bad" "wolf"'
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
missing quotes.  Always quote template expression brackets when they<br>
start a value. For instance:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with_items:
  - {{ foo }}"><pre class="notranslate"><code class="notranslate">with_items:
  - {{ foo }}
</code></pre></div>
<p dir="auto">Should be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with_items:
  - &quot;{{ foo }}&quot;      "><pre class="notranslate"><code class="notranslate">with_items:
  - "{{ foo }}"      
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
unbalanced quotes.  If starting a value with a quote, make sure the<br>
line ends with the same set of quotes.  For instance this arbitrary<br>
example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: &quot;bad&quot; &quot;wolf&quot;"><pre class="notranslate"><code class="notranslate">foo: "bad" "wolf"
</code></pre></div>
<p dir="auto">Could be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: '&quot;bad&quot; &quot;wolf&quot;'"><pre class="notranslate"><code class="notranslate">foo: '"bad" "wolf"'
</code></pre></div>
<p dir="auto">The user module uses a list operation (extend) on a set, which causes ansible to crash (stacktrace). I will create a pull request.</p>