<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">cloudflare_dns</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<p dir="auto">ansible_python_interpreter=/usr/bin/python3</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">run: MacOS<br>
man: Ubuntu 16.04</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">python3 is not working as PY3 has urllib.parse.urlencode instead of urllib.urlencode</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">cloudflare_dns module</p>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible_module_cloudflare_dns.py\&quot;, line 451, in get_zones\r\n    param = '?' + urllib.urlencode({'name' : name})\r\nAttributeError: module 'urllib' has no attribute 'urlencode'\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;"><pre class="notranslate"><code class="notranslate">ansible_module_cloudflare_dns.py\", line 451, in get_zones\r\n    param = '?' + urllib.urlencode({'name' : name})\r\nAttributeError: module 'urllib' has no attribute 'urlencode'\r\n", "msg": "MODULE FAILURE"
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">mount module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0
  config file = /home/user/project/ansible.cfg
  configured module search path = Default w/o overrides
"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
  config file = /home/user/project/ansible.cfg
  configured module search path = Default w/o overrides

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<p dir="auto">None</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">Running Ansible on Ubuntu Mate 16.10<br>
Managing Ubuntu Server 16.04</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Using the mount module to create a mount for a cifs share. In the options argument<br>
using the credentials option fails to create the mount.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: add mount remote backup
    mount:
      name: /mnt/RemoteBackups
      src: //server/RemoteBackups$
      opts: &quot;credentials=/root/smbcred,gid=999,uid=999&quot;
      fstype: cifs
      state: mounted
    become: true # as root"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">add mount remote backup</span>
    <span class="pl-ent">mount</span>:
      <span class="pl-ent">name</span>: <span class="pl-s">/mnt/RemoteBackups</span>
      <span class="pl-ent">src</span>: <span class="pl-s">//server/RemoteBackups$</span>
      <span class="pl-ent">opts</span>: <span class="pl-s"><span class="pl-pds">"</span>credentials=/root/smbcred,gid=999,uid=999<span class="pl-pds">"</span></span>
      <span class="pl-ent">fstype</span>: <span class="pl-s">cifs</span>
      <span class="pl-ent">state</span>: <span class="pl-s">mounted</span>
    <span class="pl-ent">become</span>: <span class="pl-s">true </span><span class="pl-c"><span class="pl-c">#</span> as root</span></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">I expected the mount to be created.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   &quot;invocation&quot;: {                                                                                                              [1728/4589]
        &quot;module_args&quot;: {
            &quot;boot&quot;: &quot;yes&quot;, 
            &quot;dump&quot;: null, 
            &quot;fstab&quot;: &quot;/etc/fstab&quot;, 
            &quot;fstype&quot;: &quot;cifs&quot;, 
            &quot;name&quot;: &quot;/mnt/RemoteBackups&quot;, 
            &quot;opts&quot;: &quot;credentials=/root/smbcred&quot;, 
            &quot;passno&quot;: null, 
            &quot;src&quot;: &quot;//server/RemoteBackups$&quot;, 
            &quot;state&quot;: &quot;mounted&quot;
        }, 
        &quot;module_name&quot;: &quot;mount&quot;
    }, 
    &quot;msg&quot;: &quot;Error mounting /mnt/RemoteBackups: mount: wrong fs type, bad option, bad superblock on //server/RemoteBackups$,\n       miss
ing codepage or helper program, or other error\n       (for several filesystems (e.g. nfs, cifs) you might\n       need a /sbin/mount.&lt;type&gt;
 helper program)\n\n       In some cases useful info is found in syslog - try\n       dmesg | tail or so.\n&quot;
"><pre class="notranslate"><code class="notranslate">   "invocation": {                                                                                                              [1728/4589]
        "module_args": {
            "boot": "yes", 
            "dump": null, 
            "fstab": "/etc/fstab", 
            "fstype": "cifs", 
            "name": "/mnt/RemoteBackups", 
            "opts": "credentials=/root/smbcred", 
            "passno": null, 
            "src": "//server/RemoteBackups$", 
            "state": "mounted"
        }, 
        "module_name": "mount"
    }, 
    "msg": "Error mounting /mnt/RemoteBackups: mount: wrong fs type, bad option, bad superblock on //server/RemoteBackups$,\n       miss
ing codepage or helper program, or other error\n       (for several filesystems (e.g. nfs, cifs) you might\n       need a /sbin/mount.&lt;type&gt;
 helper program)\n\n       In some cases useful info is found in syslog - try\n       dmesg | tail or so.\n"

</code></pre></div>