<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">tower_job_list module but I believe that also the other tower_* module have the same error</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">$ ./build/scripts-2.7/ansible --version<br>
ansible 2.4.0<br>
config file = /etc/ansible/ansible.cfg<br>
configured module search path = [u'/home/gsciorti/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']<br>
ansible python module location = /home/gsciorti/PycharmProjects/ansible/build/lib/ansible<br>
executable location = ./build/scripts-2.7/ansible<br>
python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No ansible.cfg configuration</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">$ cat /etc/redhat-release<br>
Fedora release 25 (Twenty Five)</p>
<p dir="auto">$ pip freeze|grep ansible-tower-cli<br>
ansible-tower-cli==3.1.6</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">If you run the tower_job_list module with or without argument it fails with the error "NameError: global name 'tower_argument_spec' is not defined". Also the other tower_* module have the same part of code</p>
<p dir="auto">Note: you don't need any Ansible Tower to reproduce this issue</p>
<p dir="auto">I'm interested to know if other people can reproduce the same problem because I'm interested to fix it if it's a bug</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./build/scripts-2.7/ansible localhost -m tower_job_list
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: global name 'tower_argument_spec' is not defined
localhost | FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;failed&quot;: true, 
    &quot;module_stderr&quot;: &quot;Traceback (most recent call last):\n  File \&quot;/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\&quot;, line 141, in &lt;module&gt;\n    main()\n  File \&quot;/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\&quot;, line 102, in main\n    argument_spec = tower_argument_spec()\nNameError: global name 'tower_argument_spec' is not defined\n&quot;, 
    &quot;module_stdout&quot;: &quot;&quot;, 
    &quot;msg&quot;: &quot;MODULE FAILURE&quot;, 
    &quot;rc&quot;: 0
}"><pre class="notranslate"><code class="notranslate">$ ./build/scripts-2.7/ansible localhost -m tower_job_list
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: global name 'tower_argument_spec' is not defined
localhost | FAILED! =&gt; {
    "changed": false, 
    "failed": true, 
    "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\", line 141, in &lt;module&gt;\n    main()\n  File \"/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\", line 102, in main\n    argument_spec = tower_argument_spec()\nNameError: global name 'tower_argument_spec' is not defined\n", 
    "module_stdout": "", 
    "msg": "MODULE FAILURE", 
    "rc": 0
}
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The execution of the module or an error message about the missing Tower connection information</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./build/scripts-2.7/ansible localhost -m tower_job_list
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: global name 'tower_argument_spec' is not defined
localhost | FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;failed&quot;: true, 
    &quot;module_stderr&quot;: &quot;Traceback (most recent call last):\n  File \&quot;/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\&quot;, line 141, in &lt;module&gt;\n    main()\n  File \&quot;/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\&quot;, line 102, in main\n    argument_spec = tower_argument_spec()\nNameError: global name 'tower_argument_spec' is not defined\n&quot;, 
    &quot;module_stdout&quot;: &quot;&quot;, 
    &quot;msg&quot;: &quot;MODULE FAILURE&quot;, 
    &quot;rc&quot;: 0
}"><pre class="notranslate"><code class="notranslate">$ ./build/scripts-2.7/ansible localhost -m tower_job_list
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: global name 'tower_argument_spec' is not defined
localhost | FAILED! =&gt; {
    "changed": false, 
    "failed": true, 
    "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\", line 141, in &lt;module&gt;\n    main()\n  File \"/tmp/ansible_oP4Pvj/ansible_module_tower_job_list.py\", line 102, in main\n    argument_spec = tower_argument_spec()\nNameError: global name 'tower_argument_spec' is not defined\n", 
    "module_stdout": "", 
    "msg": "MODULE FAILURE", 
    "rc": 0
}
</code></pre></div>
<h5 dir="auto">Issue Type: Feature Idea</h5>
<h5 dir="auto">Ansible Version: ansible 1.7.1</h5>
<h5 dir="auto">Environment: Ubuntu 14.04</h5>
<h5 dir="auto">Summary:</h5>
<p dir="auto">I request a feature to allow me to specify what filename the apt_repository creates</p>
<p dir="auto">apt_repository: repo='deb <a href="http://archive.canonical.com/ubuntu" rel="nofollow">http://archive.canonical.com/ubuntu</a> hardy partner' state=present filename=hardy-partner.list</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">When I add a repo such as:<br>
deb <a href="http://dl.google.com/linux/talkplugin/deb/" rel="nofollow">http://dl.google.com/linux/talkplugin/deb/</a> stable main</p>
<p dir="auto">A file is created named:<br>
dl_google_com_linux_chrome_deb.list</p>
<p dir="auto">When I install the package google-chrome-stable, which comes from this repo, it creates:<br>
google-chrome.list</p>
<p dir="auto">With the same repo content, so apt-get complains about duplicate entries</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">Clean repository</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">Duplicated repo entries</p>