<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">win_chocolatey</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">2.4.2.0</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">A single double quotes are ignored:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Install ImageMagick
  win_chocolatey:
    name: imagemagick.app
    install_args: &quot;/DIR=\&quot;{{ ansible_env['ProgramFiles'] }}\\ImageMagick\&quot;&quot;"><pre class="notranslate"><code class="notranslate">- name: Install ImageMagick
  win_chocolatey:
    name: imagemagick.app
    install_args: "/DIR=\"{{ ansible_env['ProgramFiles'] }}\\ImageMagick\""
</code></pre></div>
<p dir="auto">A working workaround is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Install ImageMagick
  win_chocolatey:
    name: imagemagick.app
    install_args: &quot;/DIR=\&quot;\&quot;{{ ansible_env['ProgramFiles'] }}\\ImageMagick\&quot;\&quot;&quot;"><pre class="notranslate"><code class="notranslate">- name: Install ImageMagick
  win_chocolatey:
    name: imagemagick.app
    install_args: "/DIR=\"\"{{ ansible_env['ProgramFiles'] }}\\ImageMagick\"\""
</code></pre></div>
<p dir="auto">This seems like a bug as single double quotes are ignored (checked against chocolatey log), but they should be probably double somewhere in the module.</p>
<h2 dir="auto">BUG REPORT</h2>
<p dir="auto">I'm probing a freshly installed Archlinux installation on a Raspberry PI 2 like so:</p>
<p dir="auto"><code class="notranslate">ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv</code></p>
<p dir="auto">This reads to me: Fire the setup module against the IP connecting with the user "alarm" asking for the password of this specific user. However the user that eventually attempts to connect is "root".</p>
<p dir="auto">Here's the debug response:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Loaded callback minimal of type stdout, v2.0
&lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 192.168.1.18
192.168.1.18 | UNREACHABLE! =&gt; {
    &quot;changed&quot;: false, 
    &quot;msg&quot;: &quot;ERROR! Authentication failed.&quot;, 
    &quot;unreachable&quot;: true
}"><pre class="notranslate"><code class="notranslate">Loaded callback minimal of type stdout, v2.0
&lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: root on PORT 22 TO 192.168.1.18
192.168.1.18 | UNREACHABLE! =&gt; {
    "changed": false, 
    "msg": "ERROR! Authentication failed.", 
    "unreachable": true
}
</code></pre></div>
<p dir="auto">The inventory looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[arch]
192.168.1.18

ansible.cfg is:

[defaults]

host_key_checking = False
private_key_file = /Users/xyz/.ssh/id_rsa_ansible
deprecation_warnings = True
system_warnings = True
retry_files_enabled = False

[paramiko_connection]

record_host_keys=False

[ssh_connection]
pipelining = True"><pre class="notranslate"><code class="notranslate">[arch]
192.168.1.18

ansible.cfg is:

[defaults]

host_key_checking = False
private_key_file = /Users/xyz/.ssh/id_rsa_ansible
deprecation_warnings = True
system_warnings = True
retry_files_enabled = False

[paramiko_connection]

record_host_keys=False

[ssh_connection]
pipelining = True
</code></pre></div>
<p dir="auto">The expected result, as version 1.9.4 delivers is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ⤷ ansible --version
 ansible 1.9.4
  configured module search path = None
(ANS19TEST)~/Documents/Code/VENVS/ANS19TEST"><pre class="notranslate"><code class="notranslate"> ⤷ ansible --version
 ansible 1.9.4
  configured module search path = None
(ANS19TEST)~/Documents/Code/VENVS/ANS19TEST
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="⤷ ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv

SSH password: 
&lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: alarm on PORT 22 TO 192.168.1.18
&lt;192.168.1.18&gt; REMOTE_MODULE setup"><pre class="notranslate"><code class="notranslate">⤷ ansible -i PI2 arch -m setup -c paramiko -k -u alarm -vvvv

SSH password: 
&lt;192.168.1.18&gt; ESTABLISH CONNECTION FOR USER: alarm on PORT 22 TO 192.168.1.18
&lt;192.168.1.18&gt; REMOTE_MODULE setup
</code></pre></div>
<p dir="auto">The control machine is a MBA on 10.11.3. The command was run against a Raspberry PI 2 running Archlinux.<br>
Cheers<br>
Ralph</p>