status
stringclasses 1
value | repo_name
stringlengths 9
24
| repo_url
stringlengths 28
43
| issue_id
int64 1
104k
| updated_files
stringlengths 8
1.76k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 37
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[ns, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | ansible/ansible | https://github.com/ansible/ansible | 60,595 | ["changelogs/fragments/60595-systemd_import.yml", "lib/ansible/module_utils/basic.py"] | Make sure systemd-python is installed instead of systemd | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
There are two packages on PYPI: [systemd (0.16.1)](https://pypi.org/project/systemd/), and [systemd-python (234)](https://pypi.org/project/systemd-python/) (which is the correct package)
If the target machine has systemd (0.16.1) installed with `pip3 install systemd` instead of `pip3 install systemd-python`, ansible fails on any module that uses `journal.sendv()` with an error saying:
```
File "systemd/_journal.pyx", line 32, in systemd._journal._send
ValueError: Key name may not begin with an underscore
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
`ansible/module_utils/basic.py`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.2
config file = None
configured module search path = [u'/Users/rylanpolster/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Python/2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
-
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Target: Raspbian Stretch Lite (November 2018)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
On target:
```
pip3 uninstall systemd-python
pip3 install systemd
```
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: ls
command: ls
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
`changed: [pi]`
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
The full traceback is:
Traceback (most recent call last):
File "<stdin>", line 114, in <module>
File "<stdin>", line 106, in _ansiballz_main
File "<stdin>", line 49, in invoke_module
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 170, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 626, in _exec
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/tmp/ansible_command_payload_afjk26dr/__main__.py", line 327, in <module>
File "/tmp/ansible_command_payload_afjk26dr/__main__.py", line 228, in main
File "/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py", line 691, in __init__
File "/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py", line 1940, in _log_invocation
File "/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py", line 1898, in log
File "systemd/_journal.pyx", line 68, in systemd._journal.send
File "systemd/_journal.pyx", line 32, in systemd._journal._send
ValueError: Key name may not begin with an underscore
fatal: [pi]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 114, in <module>\n File \"<stdin>\", line 106, in _ansiballz_main\n File \"<stdin>\", line 49, in invoke_module\n File \"/usr/lib/python3.5/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib/python3.5/imp.py\", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 626, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 673, in exec_module\n File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\n File \"/tmp/ansible_command_payload_afjk26dr/__main__.py\", line 327, in <module>\n File \"/tmp/ansible_command_payload_afjk26dr/__main__.py\", line 228, in main\n File \"/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py\", line 691, in __init__\n File \"/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py\", line 1940, in _log_invocation\n File \"/tmp/ansible_command_payload_afjk26dr/ansible_command_payload.zip/ansible/module_utils/basic.py\", line 1898, in log\n File \"systemd/_journal.pyx\", line 68, in systemd._journal.send\n File \"systemd/_journal.pyx\", line 32, in systemd._journal._send\nValueError: Key name may not begin with an underscore\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
``` | https://github.com/ansible/ansible/issues/60595 | https://github.com/ansible/ansible/pull/60692 | b309c142655888829200adbb356f12904effd98a | eb40ecc843d2afe530a2cb5b31c733373e52f7b6 | 2019-08-14T18:45:53Z | python | 2020-05-12T05:31:08Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,588 | ["lib/ansible/cli/scripts/ansible_cli_stub.py"] | Recent ansible-galaxy change broke token config for new users | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
A recent change (https://github.com/ansible/ansible/pull/59387/files) broke token login for new users for whom the `~/.ansible/` directory does not already exist.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`ansible-galaxy`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/calvin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/calvin/projects/ansible/lib/ansible
executable location = /home/calvin/.local/share/virtualenvs/orion/bin/ansible
python version = 3.6.8 (default, Mar 21 2019, 10:08:12) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
- Have a branch new environment on which no ansible-galaxy commands have been issued before
- Try to use `ansible-galaxy login`
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Continued working login and token saving, to the new token location at `~/.ansible/galaxy_token`
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
config file = None
configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/lib/python3.6/site-packages/ansible
executable location = /var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/bin/ansible-galaxy
python version = 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
No config file found; using defaults
the full traceback was:
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/bin/ansible-galaxy", line 111, in <module>
exit_code = cli.run()
File "/var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 298, in run
context.CLIARGS['func']()
File "/var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 921, in execute_login
token = GalaxyToken()
File "/var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/lib/python3.6/site-packages/ansible/galaxy/token.py", line 41, in __init__
self.config = yaml.safe_load(self.__open_config_for_read())
File "/var/lib/jenkins/workspace/orion_galaxy_dev/.tox/devel/lib/python3.6/site-packages/ansible/galaxy/token.py", line 51, in __open_config_for_read
f = open(self.b_file, 'w')
FileNotFoundError: [Errno 2] No such file or directory: b'/home/jenkins/.ansible/galaxy_token'
```
| https://github.com/ansible/ansible/issues/60588 | https://github.com/ansible/ansible/pull/60615 | fb2c1d4577f9f1542ef93232fe4e910cf76072d2 | aea52c67d6f55962e63ac3edb8693a17d7ef38a5 | 2019-08-14T16:57:15Z | python | 2019-08-18T20:21:47Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,587 | ["changelogs/fragments/60587-doc_parsing.yml", "lib/ansible/cli/doc.py"] | ansible-doc failing on specific line in documentation | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
anisble-doc is failing on below line
https://github.com/dynatrace-innovationlab/ansible_dynatrace_problem_comment/blob/master/library/dynatrace_comment.py#L47
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
ansible-doc
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
ansible-doc changes the line to something like below
u'Source where the comment originates from (default': u'Ansible)'
The above is not a valid python string and hence it throws an exception
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
No exception should be thrown, instead ansible-doc should fail the test
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
ansible-doc -t module dynatrace_innovationlab.dynatrace_collection.dynatrace_comment dynatrace_innovationlab.dynatrace_collection.dynatrace_deployment -vvv
<!--- Paste verbatim command output between quotes -->
```paste below
Traceback (most recent call last):
File "/home/abehl/work/src/anshul_ansible/ansible/bin/ansible-doc", line 111, in <module>
exit_code = cli.run()
File "/home/abehl/work/src/anshul_ansible/ansible/lib/ansible/cli/doc.py", line 198, in run
textret = DocCLI.format_plugin_doc(plugin, loader, plugin_type, search_paths)
File "/home/abehl/work/src/anshul_ansible/ansible/lib/ansible/cli/doc.py", line 309, in format_plugin_doc
text += DocCLI.get_man_text(doc)
File "/home/abehl/work/src/anshul_ansible/ansible/lib/ansible/cli/doc.py", line 598, in get_man_text
DocCLI.add_fields(text, doc.pop('options'), limit, opt_indent)
File "/home/abehl/work/src/anshul_ansible/ansible/lib/ansible/cli/doc.py", line 476, in add_fields
text.append(textwrap.fill(DocCLI.tty_ify(entry), limit, initial_indent=opt_indent, subsequent_indent=opt_indent))
File "/home/abehl/work/src/anshul_ansible/ansible/lib/ansible/cli/__init__.py", line 426, in tty_ify
t = cls._ITALIC.sub("`" + r"\1" + "'", text) # I(word) => `word'
TypeError: expected string or buffer
```
| https://github.com/ansible/ansible/issues/60587 | https://github.com/ansible/ansible/pull/60933 | 4bf79de8a65b5bb8bddeff3d328adbd49a8dd19b | 575116a584b5bb2fcfa3270611677f37d18295a8 | 2019-08-14T16:52:38Z | python | 2019-11-12T11:18:46Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,584 | ["lib/ansible/plugins/inventory/gcp_compute.py"] | gcp_compute plugin: 'NoneType' object has no attribute 'get' | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
The gcp dynamic inventory fails.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
- `gcp_compute`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /home/user/repos/project/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/share/virtualenvs/project-ymgbqjq6/lib/python3.7/site-packages/ansible
executable location = /home/user/.local/share/virtualenvs/project-ymgbqjq6/bin/ansible
python version = 3.7.4 (default, Jul 9 2019, 03:52:42) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/home/user/repos/project/ansible.cfg) = True
DEFAULT_ROLES_PATH(/home/user/repos/project/ansible.cfg) = ['/home/user/repos/project/roles']
DEFAULT_VAULT_PASSWORD_FILE(/home/user/repos/project/ansible.cfg) = /home/user/.secret/secret.txt
INVENTORY_ENABLED(/home/user/repos/project/ansible.cfg) = ['gcp_compute']
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
- Ubuntu 16.04
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Enable `gcp_compute` plugin in the inventory section of `ansible.cfg`:
```ini
[inventory]
enable_plugins = gcp_compute
```
Make `inventory.gcp.yml` file:
```yaml
plugin: gcp_compute
projects:
- gcp-test-project-1245
auth_kind: serviceaccount
service_account_file: "~/.secret/gcp-test-project-1245.json"
```
Try to list inventories:
```sh
ansible-inventory --list -i inventory.gcp.yml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
JSON list of inventories.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-inventory 2.8.3
config file = /home/user/repos/project/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/share/virtualenvs/project-ymgbqjq6/lib/python3.7/site-packages/ansible
executable location = /home/user/.local/share/virtualenvs/project-ymgbqjq6/bin/ansible-inventory
python version = 3.7.4 (default, Jul 9 2019, 03:52:42) [GCC 5.4.0 20160609]
Using /home/user/repos/project/ansible.cfg as config file
setting up inventory plugins
[WARNING]: * Failed to parse /home/user/repos/project/inventory.gcp.yml with gcp_compute plugin: 'NoneType' object has no attribute 'get'
File "/home/user/.local/share/virtualenvs/project-ymgbqjq6/lib/python3.7/site-packages/ansible/inventory/manager.py", line 268, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/home/user/.local/share/virtualenvs/project-ymgbqjq6/lib/python3.7/site-packages/ansible/plugins/inventory/gcp_compute.py", line 485, in parse
for key, value in resp.get('items').items():
[WARNING]: Unable to parse /home/user/repos/project/inventory.gcp.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
"_meta": {
"hostvars": {}
},
"all": {
"children": [
"ungrouped"
]
}
}
```
| https://github.com/ansible/ansible/issues/60584 | https://github.com/ansible/ansible/pull/60603 | c5c270d9f74294888e42e98522eaf360fe10c719 | 523e40e993c06a6c15234c9a3c951b5398e44184 | 2019-08-14T15:46:13Z | python | 2019-08-16T10:04:32Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,567 | ["changelogs/fragments/64059-mysql_user_fix_password_comparison.yaml", "lib/ansible/modules/database/mysql/mysql_user.py"] | 'mysql_user' module is not idempotent on Python 3.7 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
The `mysql_user` module always reports the "changed" state on hosts with Python 3.7 set as the inrerpreter. The changed message points to https://github.com/ansible/ansible/commit/9c5275092f4759c87d4cd938a73368955934b9b9 commit as the possible culprit; the changed state shows up on Ansible 2.8.0+, but not on Ansible 2.7.0+. The actual functionality (creation of the MySQL user account, setting password, etc.) seems to work fine.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
mysql_user
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = None
configured module search path = ['/home/drybjed/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/drybjed/.local/lib/python3.7/site-packages/ansible
executable location = /home/drybjed/.local/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
No changes
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
The Ansible Controller is a Debian Buster (10) host, the working remote host is a Debian Stretch (9) host with Python 2.7 and 3.5 used as the interpreters (no changes). The faulty remote host is a Debian Buster (10) host with Python 3.7 as the interpreter.
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: all
become: True
tasks:
- name: Manage MySQL account
mysql_user:
name: 'test-user'
host: 'localhost'
password: 'test-password'
state: 'present'
- name: Manage MySQL account
mysql_user:
name: 'test-user'
host: 'localhost'
password: 'test-password'
state: 'present'
register: output
- debug: var=output
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
```
PLAY [all] ******************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************
ok: [remote]
TASK [Manage MySQL account] *************************************************************************************************************************
ok: [remote]
TASK [Manage MySQL account] *************************************************************************************************************************
ok: [remote]
TASK [debug] ****************************************************************************************************************************************
ok: [remote] => {
"output": {
"changed": false,
"failed": false,
"msg": "User unchanged",
"user": "test-user"
}
}
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
PLAY [all] ******************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************
ok: [remote]
TASK [Manage MySQL account] *************************************************************************************************************************
changed: [remote]
TASK [Manage MySQL account] *************************************************************************************************************************
changed: [remote]
TASK [debug] ****************************************************************************************************************************************
ok: [remote] => {
"output": {
"changed": true,
"failed": false,
"msg": "Password updated (new style)",
"user": "test-user"
}
}
```
| https://github.com/ansible/ansible/issues/60567 | https://github.com/ansible/ansible/pull/64059 | 9df9ed4cd3c7a41bf8de07fc2f83002dad660408 | 4d1e21bf18e2171549156dd78845a22ba4bdb5fa | 2019-08-14T12:08:55Z | python | 2020-01-24T18:32:15Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,565 | ["lib/ansible/modules/cloud/vmware/vmware_guest_screenshot.py", "test/integration/targets/vmware_guest_screenshot/tasks/main.yml"] | vmware_guest_screenshot: AttributeError: 'PyVmomiHelper' object has no attribute 'get_parent_datacenter' | ##### SUMMARY
<!--- Explain the problem briefly below -->
If the `datacenter` key is not defined, `vmware_guest_screenshot` while fail with the following error:
```
TASK [vmware_guest_screenshot : take screenshot of virtual machine's console and download to local] **********************************************
task path: /home/goneri/.ansible/test/tmp/vmware_guest_screenshot-yyx29421-ÅÑŚÌβŁÈ/test/integration/targets/vmware_guest_screenshot/tasks/main.yml:38
<testhost> ESTABLISH LOCAL CONNECTION FOR USER: goneri
<testhost> EXEC /bin/sh -c 'echo ~goneri && sleep 0'
<testhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069 `" && echo ansible-tmp-1565778524.0166469-178908954277069="` echo /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069 `" ) && sleep 0'
Using module file /home/goneri/git_repos/ansible_projects/c/lib/ansible/modules/cloud/vmware/vmware_guest_screenshot.py
<testhost> PUT /home/goneri/.ansible/tmp/ansible-local-3806uqeztqz4/tmplgf85opc TO /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py
<testhost> EXEC /bin/sh -c 'chmod u+x /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/ /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py && sleep 0'
<testhost> EXEC /bin/sh -c 'ESXI1_HOSTNAME=root ESXI1_PASSWORD='"'"'!234AaAa56'"'"' ESXI1_USERNAME=esxi1.test ESXI2_HOSTNAME=root ESXI2_PASSWORD='"'"'!234AaAa56'"'"' ESXI2_USERNAME=esxi2.test VCENTER_HOSTNAME=vcenter.test VCENTER_PASSWORD='"'"'!234AaAa56'"'"' [email protected] VMWARE_PROXY_HOST='"'"''"'"' VMWARE_PROXY_PORT=0 VMWARE_VALIDATE_CERTS=False /home/goneri/git_repos/ansible_projects/c/.virtualenv/py37/bin/python /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py && sleep 0'
<testhost> EXEC /bin/sh -c 'rm -f -r /home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py", line 139, in <module>
_ansiballz_main()
File "/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py", line 131, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py", line 65, in invoke_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py", line 293, in <module>
File "/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py", line 285, in main
File "/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py", line 251, in take_vm_screenshot
File "/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py", line 169, in generate_http_access_url
AttributeError: 'PyVmomiHelper' object has no attribute 'get_parent_datacenter'
fatal: [testhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py\", line 139, in <module>\n _ansiballz_main()\n File \"/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py\", line 131, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/goneri/.ansible/tmp/ansible-tmp-1565778524.0166469-178908954277069/AnsiballZ_vmware_guest_screenshot.py\", line 65, in invoke_module\n spec.loader.exec_module(module)\n File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py\", line 293, in <module>\n File \"/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py\", line 285, in main\n File \"/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py\", line 251, in take_vm_screenshot\n File \"/tmp/ansible_vmware_guest_screenshot_payload_ka1817jv/__main__.py\", line 169, in generate_http_access_url\nAttributeError: 'PyVmomiHelper' object has no attribute 'get_parent_datacenter'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
vmware_guest_screenshot
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
devel branch
```
##### STEPS TO REPRODUCE
https://github.com/ansible/ansible/blob/d8d00c36fa41ddc384966249005f7a922ead43c1/test/integration/targets/vmware_guest_screenshot/tasks/main.yml#L14-L20
##### ACTUAL RESULTS
The backtrace above. | https://github.com/ansible/ansible/issues/60565 | https://github.com/ansible/ansible/pull/60626 | 20d9c34862bcaa9486e1036a588691fb1eebf5d7 | d987dca2b1a2ea695c726828526b038fc184580b | 2019-08-14T11:58:06Z | python | 2019-08-28T17:04:30Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,540 | ["changelogs/fragments/60979-nginx_status_facts-info.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/web_infrastructure/_nginx_status_facts.py", "lib/ansible/modules/web_infrastructure/nginx_status_info.py", "test/sanity/ignore.txt"] | nginx_status_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but depends on a status URL of an nginx instance (`url`). Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
nginx_status_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60540 | https://github.com/ansible/ansible/pull/60979 | 8b3ff933afde2f7942393eeb0913a5a22693728b | c1b2aa1d114c0368ad53b7c054266e8096d6df34 | 2019-08-13T20:50:53Z | python | 2019-08-21T07:09:22Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,539 | ["changelogs/fragments/60919-gluster_heal_facts-info-rename.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/storage/glusterfs/_gluster_heal_facts.py", "lib/ansible/modules/storage/glusterfs/gluster_heal_info.py", "test/sanity/ignore.txt"] | gluster_heal_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but depends on a module option (`name`). Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
gluster_heal_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60539 | https://github.com/ansible/ansible/pull/60919 | c66163b11860ecdd965947bf019307a0db5cf8c7 | e58919bccd86dc3be6886d370330726f0d985e6b | 2019-08-13T20:50:52Z | python | 2019-08-20T13:43:41Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,538 | ["changelogs/fragments/60917-hpilo_facts-info-rename.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/remote_management/hpilo/_hpilo_facts.py", "lib/ansible/modules/remote_management/hpilo/hpilo_info.py", "test/sanity/ignore.txt"] | hpilo_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but on another host (`host`). Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
hpilo_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60538 | https://github.com/ansible/ansible/pull/60917 | 2e6458bb732588173186a21cf20c7bda0c988237 | c66163b11860ecdd965947bf019307a0db5cf8c7 | 2019-08-13T20:50:52Z | python | 2019-08-20T13:14:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,535 | ["changelogs/fragments/61237_rename-onepassword_facts-to-onepassword_info.yaml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/identity/_onepassword_facts.py", "lib/ansible/modules/identity/onepassword_info.py", "test/sanity/ignore.txt"] | onepassword_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but bound to a cloud account. Please verify whether this is actually the case. (Also, making the user register the result and only turning it into a fact explicitly might improve security when caching is enabled.)
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
onepassword_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60535 | https://github.com/ansible/ansible/pull/61237 | d3b493020dc5b4326c1e4fd782243ceaa8f1ef17 | e4c1c0536367e85634b71bbf3aa638bf31d71d84 | 2019-08-13T20:50:49Z | python | 2019-08-23T18:45:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,534 | ["changelogs/fragments/60916-vertica_facts-info-rename.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/database/vertica/_vertica_facts.py", "lib/ansible/modules/database/vertica/vertica_info.py", "test/sanity/ignore.txt"] | vertica_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but bound to a DB instance which could even run on another host. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vertica_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60534 | https://github.com/ansible/ansible/pull/60916 | 0696fcacf0846f1febe94f518bfd3e1cd521cca5 | 1906c05348a37646fe01b2d350753ab26b486dce | 2019-08-13T20:50:48Z | python | 2019-08-27T19:28:36Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,532 | ["changelogs/fragments/60915-smartos_image_facts-info-rename.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/cloud/smartos/_smartos_image_facts.py", "lib/ansible/modules/cloud/smartos/smartos_image_info.py", "test/sanity/ignore.txt"] | smartos_image_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: its return value depends on the module option `filter`. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
smartos_image_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60532 | https://github.com/ansible/ansible/pull/60915 | e176023c6bbe2e279a9df233a291eb8f9303b40e | 2db4e044ab0ba9961f06af1524384aa130006555 | 2019-08-13T20:50:47Z | python | 2019-08-27T20:43:10Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,530 | ["changelogs/fragments/60530-facts-info-rename.yaml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/cloud/digital_ocean/_digital_ocean_sshkey_facts.py", "lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey_info.py"] | digital_ocean_sshkey_facts needs to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that this module do not satisfy this condition: it returns information that is not specific to the host machine, but bound to a cloud account. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
digital_ocean_sshkey_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60530 | https://github.com/ansible/ansible/pull/60546 | 491a47c7c5be8ba5b4cca4e1a5171c15d669a47f | 39d249155a51c94b5d97d101112298e150f69287 | 2019-08-13T20:50:44Z | python | 2019-08-15T21:45:05Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,524 | ["changelogs/fragments/60980-netapp-facts.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/storage/netapp/_na_ontap_gather_facts.py", "lib/ansible/modules/storage/netapp/na_ontap_info.py", "test/sanity/ignore.txt", "test/units/modules/storage/netapp/test_na_ontap_info.py"] | Netapp _facts modules need to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that the following modules do not satisfy this condition: they return information that is not specific to the host machine, but bound to an online account. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
na_ontap_gather_facts
~~netapp_e_facts~~
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60524 | https://github.com/ansible/ansible/pull/60980 | e04b2a9697512bc64d2613033274e67fbfbd26c7 | 18f7c3b850b9a6f5eab0ecee3a4299cca642ba4a | 2019-08-13T20:33:16Z | python | 2019-08-22T20:51:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,523 | ["changelogs/fragments/60992-redfish-info.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/remote_management/redfish/_idrac_redfish_facts.py", "lib/ansible/modules/remote_management/redfish/_redfish_facts.py", "lib/ansible/modules/remote_management/redfish/idrac_redfish_info.py", "lib/ansible/modules/remote_management/redfish/redfish_info.py"] | Redfish _facts modules need to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that the following modules do not satisfy this condition: they return information that is not specific to the host machine, but bound to a OOB controller base URI. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
idrac_redfish_facts
redfish_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60523 | https://github.com/ansible/ansible/pull/60992 | 191aa114834f81efc392ee4b63f17c5bb148e479 | 47c2ff4c26c93578f4a7f1581624852592a7c31c | 2019-08-13T20:33:14Z | python | 2019-08-26T18:42:04Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,517 | ["changelogs/fragments/61091-online-facts-info.yaml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/cloud/online/_online_server_facts.py", "lib/ansible/modules/cloud/online/_online_user_facts.py", "lib/ansible/modules/cloud/online/online_server_info.py", "lib/ansible/modules/cloud/online/online_user_info.py", "test/legacy/online.yml", "test/legacy/roles/online_server_info/tasks/main.yml", "test/legacy/roles/online_user_info/tasks/main.yml"] | Online cloud _facts modules need to be renamed to _info and stop returning ansible_facts | ##### SUMMARY
According to the [requirements](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html#contributing-to-ansible-objective-requirements), `_facts` modules should return information that is specific to the host the module runs on as `ansible_facts`. (See also ansible/ansible#54280 for some discussion.)
I think that the following modules do not satisfy this condition: they return information that is not specific to the host machine, but bound to a cloud account. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the `_facts` modules to `_info` modules, and change the return value so that if the module is called with the `_facts` name (should be deprecated, and will then be removed in Ansible 2.13), it should return `ansible_facts` as now (and print a deprecation message), and if it is called with the `_info` name, it no longer returns `ansible_facts`, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the `_info` names) to verify that their roles and playbooks no longer use the facts.
If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the `_facts` module and create a new `_info` module next to it. To see both approaches implemented, you can take a look at https://github.com/ansible/ansible/commit/2d98734ad51c3de557c3a7d1f7166bdd114ceb0f (ansible/ansible#60178).
If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
online_server_facts
online_user_facts
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/60517 | https://github.com/ansible/ansible/pull/61091 | 489156378c8e97374a75a544c7c9c2c0dd8146d1 | 185a1fcb07285ab8d5c1fc45b6b5b8b1b5726f4e | 2019-08-13T20:33:04Z | python | 2019-08-27T20:36:55Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,497 | ["changelogs/fragments/66398-pamd_fix-attributeerror-when-removing-first-line.yml", "lib/ansible/modules/system/pamd.py", "test/units/modules/system/test_pamd.py"] | pamd module: cannot remove line when it is the first line of the file | ##### SUMMARY
I have a pam.d file which has no comments and only pam directives in it. I was attempting to remove the very first one, which is also the first line of the file. This results in an error. By adding a dummy comment to the file as the first line, I was able to successfully remove the line I needed.
My guess is that because the [append](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/system/pamd.py#L464) method does not set the `prev` and `next` linked-list properties when the line being append is the first line, the exception occurs. In the case of `if self._head is None`, `prev` and `next` should be set to `None`.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
pamd
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.3
config file = None
configured module search path = ['/home/administrator/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/venvs/ansible/lib/python3.5/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
administrator@administrator-PC:~$ ansible-config dump --only-changed
administrator@administrator-PC:~$
```
##### OS / ENVIRONMENT
Deepin 15.11, using the `ansible-playbook` command to run a local playbook
##### STEPS TO REPRODUCE
Example pam.d file that does not work (`deepin-auth-keyboard`):
```
auth [success=2 default=ignore] pam_lsass.so
auth [success=1 default=ignore] pam_unix.so nullok_secure try_first_pass
auth requisite pam_deny.so
auth required pam_permit.so
```
Playbook task:
```yaml
- name: Remove lsass from Deepin pam.d
pamd:
name: deepin-auth-keyboard
type: auth
control: "[success=2 default=ignore]"
module_path: pam_lsass.so
state: absent
```
##### EXPECTED RESULTS
I expect that the first line of the file is removed
##### ACTUAL RESULTS
```
TASK [kerberos : Remove lsass from Deepin pam.d] ****************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'PamdRule' object has no attribute 'prev'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/administrator/.ansible/tmp/ansible-tmp-1565652483.5214953-86228576212948/AnsiballZ_pamd.py\", line 114, in <module>\n _ansiballz_main()\n File \"/home/administrator/.ansible/tmp/ansible-tmp-1565652483.5214953-86228576212948/AnsiballZ_pamd.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/administrator/.ansible/tmp/ansible-tmp-1565652483.5214953-86228576212948/AnsiballZ_pamd.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/opt/venvs/ansible/lib/python3.5/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/opt/venvs/ansible/lib/python3.5/imp.py\", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 626, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 673, in exec_module\n File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\n File \"/tmp/ansible_pamd_payload_x6hjqy1u/__main__.py\", line 877, in <module>\n File \"/tmp/ansible_pamd_payload_x6hjqy1u/__main__.py\", line 843, in main\n File \"/tmp/ansible_pamd_payload_x6hjqy1u/__main__.py\", line 479, in remove\nAttributeError: 'PamdRule' object has no attribute 'prev'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
```
| https://github.com/ansible/ansible/issues/60497 | https://github.com/ansible/ansible/pull/66398 | e368f788f71c338cd3f049d5d6bdc643a51c0514 | a4b59d021368285490f7cda50c11ac4f7a8030b5 | 2019-08-13T15:12:15Z | python | 2020-01-23T19:08:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,450 | ["changelogs/fragments/package_facts-performace-regression-fix.yaml", "lib/ansible/modules/packaging/os/package_facts.py"] | apt_facts performance regression (2.7 vs 2.8) | ##### SUMMARY
In several comments on this PR, it was noted that the 2.8.x apt package facts has a large performance regression: https://github.com/ansible/ansible/pull/56008#issuecomment-496931379
The reported difference is about 1m30s vs 8s for a fixed version.
Looking at the fixed version versus 2.8x and devel code, it looks like the issue is that creating an empty apt package cache takes a measurable amount of time. Doing that in a loop for each package adds up significantly. This can be fixed by reusing the empty cache rather than recreating a new one every single time. I asked for people to test with the following change and they report that it fixes the problem:
``` patch
@property
def pkg_cache(self):
- if self._cache:
+ if self._cache is not None:
return self._cache
self._cache = self._lib.Cache()
return self._cache
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
package_facts.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.8.x devel
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
N/A
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
An Ubuntu or Debian managed machine
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Package facts gathered in under 10s
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Package facts gathered in over a minute.
| https://github.com/ansible/ansible/issues/60450 | https://github.com/ansible/ansible/pull/60511 | b07f96c31dec8fc47ad5c968bed8c495e948c97c | 0f35e4b7b9cbfc78642c48c9477b0e9b7e99fb6d | 2019-08-13T01:21:12Z | python | 2019-08-14T07:43:52Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,416 | ["changelogs/fragments/60740-openssl_certificate-check-existence.yml", "lib/ansible/modules/crypto/openssl_certificate.py"] | openssl_certificate module attempts to load csr before checking if it's null | ##### SUMMARY
Some of the providers for the openssl_certificate module attempt to load the contents of csr_path during their init() methods,
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
crypto/openssl_certificate
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
config file = /opt/ansible-openssl-module/molecule_openssl_test/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/python-environments/py36env/lib/python3.6/site-packages/ansible
executable location = /opt/python-environments/py36env/bin/ansible
python version = 3.6.7 (default, Dec 5 2018, 15:02:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Not applicable, bug identified during code review.
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```
- name: Generate self-signed certificate with cryptography, CSR is an invalid path
openssl_certificate:
path: /etc/ssl/crt/ansible.com.crt
privatekey_path: /etc/ssl/private/ansible.com.pem
csr_path: /etc/ssl/csr/ansible.com.INVALID.csr
provider: selfsigned
- name: Generate self-signed certificate with pyopenssl, CSR is invalid path
openssl_certificate:
path: /etc/ssl/crt/ansible.com.crt
privatekey_path: /etc/ssl/private/ansible.com.pem
csr_path: /etc/ssl/csr/ansible.com.INVALID.csr
provider: selfsigned
select_crypto_backend: pyopenssl
- name: Generate OwnCA certificate with cryptography, CSR is invalid path
openssl_certificate:
path: /etc/ssl/crt/ansible.com.crt
csr_path: /etc/ssl/csr/ansible.com.INVALID.csr
ownca_path: /etc/ssl/crt/ansible_CA.crt
ownca_privatekey_path: /etc/ssl/private/ansible_CA.pem
provider: ownca
Name: Generate OwnCA certificate with pyopenssl, CSR is invalid path
openssl_certificate:
path: /etc/ssl/crt/ansible.com.crt
csr_path: /etc/ssl/csr/ansible.com.INVALID.csr
ownca_path: /etc/ssl/crt/ansible_CA.crt
ownca_privatekey_path: /etc/ssl/private/ansible_CA.pem
provider: ownca
select_crypto_backend: pyopenssl
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
Should throw error:
raise CertificateError(
'The certificate signing request file %s does not exist' % self.csr_path
)
That error is currently in the generate method instead of init(), so it ends up attempting the certificate load via crypto_utils.load_certificate_request in init prior to the check for file path existence.
##### ACTUAL RESULTS
Will update ticket to populate once I have a chance to create test cases.
<!--- Paste verbatim command output between quotes -->
```
```
| https://github.com/ansible/ansible/issues/60416 | https://github.com/ansible/ansible/pull/60740 | 13364fc5302ee4d457db817da16d624542a7cc31 | 16056f4978c8c85601734c8544afe336716f0e39 | 2019-08-12T13:30:13Z | python | 2019-08-18T09:41:50Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,399 | ["lib/ansible/modules/cloud/vmware/vmware_datastore_facts.py", "lib/ansible/modules/cloud/vmware/vmware_guest.py"] | vmware: avoid unnecessary copy call on internal objects | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Two vmware modules uses `copy()` to duplicate an internal instance of a pyvmomi object. This to be able to modify the object during an iteration.
- https://github.com/ansible/ansible/blob/622a493ae03bd5e5cf517d336fc426e9d12208c7/lib/ansible/modules/cloud/vmware/vmware_guest.py#L788
- https://github.com/ansible/ansible/blob/622a493ae03bd5e5cf517d336fc426e9d12208c7/lib/ansible/modules/cloud/vmware/vmware_datastore_facts.py#L220
As explain here, https://github.com/ansible/ansible/pull/60196/files#r312643761 this is not the best approach and this may impact the performance.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vmware
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
devel
``` | https://github.com/ansible/ansible/issues/60399 | https://github.com/ansible/ansible/pull/60476 | fa783c027bff9b5b9e25c8619faddb9a0fcc02fc | df2a09e998205df30306de33ca3ce1dd9cae1cb5 | 2019-08-12T08:30:37Z | python | 2019-08-13T13:27:22Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,335 | ["lib/ansible/modules/system/ufw.py"] | Update docs to use string values instead of ints | ##### SUMMARY
The documentation for various modules uses bare int values, but these now print a warning message indicating they should be quoted string values. The warning message was already reported as #58347 and closed as not a bug. Since it appears bare int values are no longer acceptable (at least not without a warning), I think the documentation should be updated to avoid use of such values. Incidentally, the original reporter of #58347 broached that topic, but I think it was lost in the shuffle.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
There are likely others, but the two modules I know that document behavior that will result in a warning message being presented are:
- sysctl
- ufw
##### ANSIBLE VERSION
```paste below
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/nirvdrum/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]
```
##### CONFIGURATION
Default configuration. Nothing changed.
##### OS / ENVIRONMENT
Ubuntu 18.04.
##### ADDITIONAL INFORMATION
The first example from the Ansible sysctl module documentation looks like:
```yaml
# Set vm.swappiness to 5 in /etc/sysctl.conf
- sysctl:
name: vm.swappiness
value: 5
state: present
```
Since this will result in a warning being printed out, that can be confusing for users. It's particularly confusing for anyone that happened to have used the example code with releases of Ansible that previously did not produce a warning. If this is the path going forward, however, I think we can clear things up quite a bit by quoting values in the documentation. E.g.,
```yaml
# Set vm.swappiness to 5 in /etc/sysctl.conf
- sysctl:
name: vm.swappiness
value: '5'
state: present
```
| https://github.com/ansible/ansible/issues/60335 | https://github.com/ansible/ansible/pull/63505 | e0f67b58ce85b3fbb5930e19ad76d27834cf6c34 | e4eea0510cd89124c3a20f4d9937e7c015a46597 | 2019-08-09T19:48:00Z | python | 2019-10-15T15:55:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,307 | ["lib/ansible/modules/system/user.py", "test/integration/targets/user/tasks/main.yml"] | user: createhome=no fails with [Errno 2] No such file or directory | ##### SUMMARY
I am creating a system user account for Jenkins workers, and I want to create the home directory myself, after the user is already created. Ansible 2.8 let me, current devel branch fails.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
user
##### ANSIBLE VERSION
```
ansible 2.9.0.dev0
config file = /home/mg/src/deployments/provisioning/ansible.cfg
configured module search path = [u'/home/mg/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/mg/src/ansible/lib/ansible
executable location = /home/mg/src/ansible/bin/ansible
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
ACTION_WARNINGS(/home/mg/src/deployments/provisioning/ansible.cfg) = False
CACHE_PLUGIN(/home/mg/src/deployments/provisioning/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/home/mg/src/deployments/provisioning/ansible.cfg) = .cache/facts/
CACHE_PLUGIN_TIMEOUT(/home/mg/src/deployments/provisioning/ansible.cfg) = 86400
DEFAULT_CALLBACK_WHITELIST(/home/mg/src/deployments/provisioning/ansible.cfg) = [u'fancy_html']
DEFAULT_FORKS(/home/mg/src/deployments/provisioning/ansible.cfg) = 15
DEFAULT_GATHERING(/home/mg/src/deployments/provisioning/ansible.cfg) = smart
DEFAULT_HOST_LIST(/home/mg/src/deployments/provisioning/ansible.cfg) = [u'/home/mg/src/deployments/provisioning/inventory']
DEFAULT_LOG_PATH(/home/mg/src/deployments/provisioning/ansible.cfg) = /home/mg/src/deployments/provisioning/.cache/ansible.log
DEFAULT_REMOTE_USER(/home/mg/src/deployments/provisioning/ansible.cfg) = root
DEFAULT_STDOUT_CALLBACK(/home/mg/src/deployments/provisioning/ansible.cfg) = yaml
DEFAULT_VAULT_PASSWORD_FILE(/home/mg/src/deployments/provisioning/ansible.cfg) = /home/mg/src/deployments/provisioning/askpass.py
RETRY_FILES_ENABLED(/home/mg/src/deployments/provisioning/ansible.cfg) = False
```
##### OS / ENVIRONMENT
Ubuntu 19.04 on the controller, Ubuntu 16.04 and 18.04 on the targets.
##### STEPS TO REPRODUCE
```yaml
- hosts: all
tasks:
- name: create a user for the jenkins worker
user: name=jenkins-worker home=/var/lib/jenkins-worker createhome=no shell=/bin/bash system=yes
tags: [ jenkins, user ]
- name: create /var/lib/jenkins-worker
file: dest=/var/lib/jenkins-worker state=directory owner=jenkins-worker group=jenkins-worker
tags: [ jenkins, user ]
```
##### EXPECTED RESULTS
I expect there to be a /var/lib/jenkins-worker, owner by jenkins-worker:jenkins-worker, with no dotfiles inside it.
##### ACTUAL RESULTS
<!--- Paste verbatim command output between quotes -->
```
TASK [jenkins-worker : create a user for the jenkins worker] ******************************************************************************************************************************************************
fatal: [xenial]: FAILED! => changed=false
msg: '[Errno 2] No such file or directory: ''/var/lib/jenkins-worker'''
fatal: [bionic]: FAILED! => changed=false
msg: '[Errno 2] No such file or directory: ''/var/lib/jenkins-worker'''
```
What's even more fun is that when I re-ran the playbook, it succeeded, and I don't understand what even is going on any more. | https://github.com/ansible/ansible/issues/60307 | https://github.com/ansible/ansible/pull/60310 | 13403b36889a24740178908d3f816d80545b06ad | c71622b31a52c44f171a4bb9da1331939ad7aa60 | 2019-08-09T10:43:06Z | python | 2019-08-12T14:37:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,237 | ["lib/ansible/modules/network/aireos/aireos_command.py", "lib/ansible/plugins/connection/network_cli.py", "test/units/modules/network/aireos/test_aireos_command.py"] | aireos modules unable to handle binary data from controller | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Cisco WLC release 8.8.120.0 returns non-ascii values with a `show run-config commands` command causing tasks and modules using this command to fail.
The binary data appears to happen in the same spot in the output from the controller and looks like this in the prompt:
```
wlan flexconnect learn-ipaddr 97 enable
wlan flexconnect learn-ipaddr 101 enable
`Ȓ�R`Ȓ�R`Ȓ�R`Ȓ�R`Ȓ�R`Ȓ�R`Ȓ�R
wlan wgb broadcast-tagging disable 1
wlan wgb broadcast-tagging disable 2 `
```
There are a number of bytes that represent the binary data, one sample is: `\xc8\x92\xef\xbf\xbdR\x7f`
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
aireos_command
aireos_config
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = /Users/wsmith/temp/network_backup/ansible.cfg
configured module search path = [u'/Users/wsmith/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/wsmith/temp/ansible/lib/ansible
executable location = /Users/wsmith/temp/ansible/bin/ansible
python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_DEBUG(env: ANSIBLE_DEBUG) = True
DEFAULT_FORKS(/Users/wsmith/temp/network_backup/ansible.cfg) = 20
DEFAULT_GATHERING(/Users/wsmith/temp/network_backup/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/Users/wsmith/temp/network_backup/ansible.cfg) = [u'/Users/wsmith/temp/network_backup/inventory.ini']
DEFAULT_INVENTORY_PLUGIN_PATH(/Users/wsmith/temp/network_backup/ansible.cfg) = [u'/Users/wsmith/temp/network_backup/inventory_plugins']
DEFAULT_KEEP_REMOTE_FILES(env: ANSIBLE_KEEP_REMOTE_FILES) = False
DEFAULT_LOG_PATH(/Users/wsmith/temp/network_backup/ansible.cfg) = /Users/wsmith/temp/network_backup/ansible.log
DEFAULT_ROLES_PATH(/Users/wsmith/temp/network_backup/ansible.cfg) = [u'/Users/wsmith/temp/network_backup/roles']
DEFAULT_VAULT_PASSWORD_FILE(/Users/wsmith/temp/network_backup/ansible.cfg) = /Users/wsmith/temp/network_backup/vault_password.txt
HOST_KEY_CHECKING(/Users/wsmith/temp/network_backup/ansible.cfg) = False
INTERPRETER_PYTHON(/Users/wsmith/temp/network_backup/ansible.cfg) = /Users/wsmith/temp/ansible/venv/bin/python
INVENTORY_ENABLED(/Users/wsmith/temp/network_backup/ansible.cfg) = [u'ini']
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Cisco WLC running AireOS with code version 8.8.120.0
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Run `ansible-playbook` against playbook with task that will execute the `show run-config commands` command.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- hosts: WLCs
vars:
ansible_connection: local
ansible_network_os: aireos
ansible_user: "user"
ansible_password: "password"
tasks:
- name: Get current running configuration
aireos_command:
commands:
- show run-config commands
provider:
timeout: 90
register: output
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
A successful task execution and the running configuration retrieved from the WLC.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
An `AnsibleConnectionFailure` exception is raised.
<!--- Paste verbatim command output between quotes -->
```paste below
2019-08-07 13:59:25,451 p=wsmith u=16872 | ansible-playbook 2.9.0.dev0
config file = /Users/wsmith/temp/network_backup/ansible.cfg
configured module search path = [u'/Users/wsmith/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/wsmith/temp/ansible/lib/ansible
executable location = /Users/wsmith/temp/ansible/bin/ansible-playbook
python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
2019-08-07 13:59:25,451 p=wsmith u=16872 | Using /Users/wsmith/temp/network_backup/ansible.cfg as config file
2019-08-07 13:59:25,452 p=wsmith u=16872 | setting up inventory plugins
2019-08-07 13:59:25,463 p=wsmith u=16872 | Parsed /Users/wsmith/temp/network_backup/inventory.ini inventory source with ini plugin
2019-08-07 13:59:25,832 p=wsmith u=16872 | Loading callback plugin default of type stdout, v2.0 from /Users/wsmith/temp/ansible/lib/ansible/plugins/callback/default.pyc
2019-08-07 13:59:25,875 p=wsmith u=16872 | PLAYBOOK: pb.yml *****************************************************************************************************************************************************************************
2019-08-07 13:59:25,875 p=wsmith u=16872 | 1 plays in pb.yml
2019-08-07 13:59:25,879 p=wsmith u=16872 | PLAY [WLCs] *****************************************************************************************************************************************************************************
2019-08-07 13:59:25,888 p=wsmith u=16872 | META: ran handlers
2019-08-07 13:59:25,894 p=wsmith u=16872 | TASK [Get current running configuration] ****************************************************************************************************************************************************************
2019-08-07 13:59:25,992 p=wsmith u=16880 | Trying secret FileVaultSecret(filename='/Users/wsmith/temp/network_backup/vault_password.txt') for vault_id=default
2019-08-07 13:59:26,012 p=wsmith u=16880 | Trying secret FileVaultSecret(filename='/Users/wsmith/temp/network_backup/vault_password.txt') for vault_id=default
2019-08-07 13:59:26,033 p=wsmith u=16880 | <1.1.1.1> using connection plugin network_cli (was local)
2019-08-07 13:59:26,034 p=wsmith u=16880 | <1.1.1.1> starting connection from persistent connection plugin
2019-08-07 13:59:26,404 p=wsmith u=16886 | <1.1.1.1> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: username on PORT 22 TO 1.1.1.1
2019-08-07 13:59:28,447 p=wsmith u=16880 | <1.1.1.1> local domain socket does not exist, starting it
2019-08-07 13:59:28,449 p=wsmith u=16880 | <1.1.1.1> control socket path is /Users/wsmith/.ansible/pc/0d509e7b95
2019-08-07 13:59:28,450 p=wsmith u=16880 | <1.1.1.1> <1.1.1.1> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: username on PORT 22 TO 1.1.1.1
2019-08-07 13:59:28,451 p=wsmith u=16880 | <1.1.1.1> connection to remote device started successfully
2019-08-07 13:59:28,452 p=wsmith u=16880 | <1.1.1.1> local domain socket listeners started successfully
2019-08-07 13:59:28,452 p=wsmith u=16880 | <1.1.1.1> loaded cliconf plugin for network_os aireos
2019-08-07 13:59:28,453 p=wsmith u=16880 | network_os is set to aireos
2019-08-07 13:59:28,453 p=wsmith u=16880 | <1.1.1.1> ssh connection done, setting terminal
2019-08-07 13:59:28,454 p=wsmith u=16880 | <1.1.1.1> loaded terminal plugin for network_os aireos
2019-08-07 13:59:28,454 p=wsmith u=16880 | <1.1.1.1> Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds
2019-08-07 13:59:28,455 p=wsmith u=16880 | <1.1.1.1> firing event: on_open_shell()
2019-08-07 13:59:28,455 p=wsmith u=16880 | <1.1.1.1> Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds
2019-08-07 13:59:28,456 p=wsmith u=16880 | <1.1.1.1> ssh connection has completed successfully
2019-08-07 13:59:28,456 p=wsmith u=16880 | <1.1.1.1>
2019-08-07 13:59:28,457 p=wsmith u=16880 | <1.1.1.1> local domain socket path is /Users/wsmith/.ansible/pc/0d509e7b95
2019-08-07 13:59:28,457 p=wsmith u=16880 | <1.1.1.1> socket_path: /Users/wsmith/.ansible/pc/0d509e7b95
2019-08-07 13:59:28,460 p=wsmith u=16880 | <1.1.1.1> ESTABLISH LOCAL CONNECTION FOR USER: wsmith
2019-08-07 13:59:28,461 p=wsmith u=16880 | <1.1.1.1> EXEC /bin/sh -c 'echo ~wsmith && sleep 0'
2019-08-07 13:59:28,477 p=wsmith u=16880 | <1.1.1.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451 `" && echo ansible-tmp-1565211568.46-135266596630451="` echo /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451 `" ) && sleep 0'
2019-08-07 13:59:28,670 p=wsmith u=16880 | Using module file /Users/wsmith/temp/ansible/lib/ansible/modules/network/aireos/aireos_command.py
2019-08-07 13:59:28,672 p=wsmith u=16880 | <1.1.1.1> PUT /Users/wsmith/.ansible/tmp/ansible-local-16872CPCpFb/tmpaJTRIR TO /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451/AnsiballZ_aireos_command.py
2019-08-07 13:59:28,674 p=wsmith u=16880 | <1.1.1.1> EXEC /bin/sh -c 'chmod u+x /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451/ /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451/AnsiballZ_aireos_command.py && sleep 0'
2019-08-07 13:59:28,693 p=wsmith u=16880 | <1.1.1.1> EXEC /bin/sh -c '/Users/wsmith/temp/ansible/venv/bin/python /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451/AnsiballZ_aireos_command.py && sleep 0'
2019-08-07 14:00:08,812 p=wsmith u=16886 | Traceback (most recent call last):
File "/Users/wsmith/temp/ansible/lib/ansible/utils/jsonrpc.py", line 45, in handle_request
result = rpc_method(*args, **kwargs)
File "/Users/wsmith/temp/ansible/lib/ansible/plugins/connection/network_cli.py", line 287, in exec_command
return self.send(command=cmd)
File "/Users/wsmith/temp/ansible/lib/ansible/plugins/connection/network_cli.py", line 473, in send
response = self.receive(command, prompt, answer, newline, prompt_retry_check, check_all)
File "/Users/wsmith/temp/ansible/lib/ansible/plugins/connection/network_cli.py", line 444, in receive
if self._find_prompt(window):
File "/Users/wsmith/temp/ansible/lib/ansible/plugins/connection/network_cli.py", line 590, in _find_prompt
raise AnsibleConnectionFailure(errored_response)
AnsibleConnectionFailure: {u'answer': None, u'prompt': None, u'command': u'show run-config commands'}
Incorrect usage. Use the '?' or <TAB> key to list commands.
(WLC01) >
2019-08-07 14:00:08,827 p=wsmith u=16880 | <1.1.1.1> EXEC /bin/sh -c 'rm -f -r /Users/wsmith/.ansible/tmp/ansible-tmp-1565211568.46-135266596630451/ > /dev/null 2>&1 && sleep 0'
2019-08-07 14:00:08,854 p=wsmith u=16872 | fatal: [WLC01]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"commands": [
"show run-config commands"
],
"host": null,
"interval": 1,
"match": "all",
"password": null,
"port": null,
"provider": {
"host": null,
"password": null,
"port": null,
"ssh_keyfile": null,
"timeout": 90,
"username": null
},
"retries": 10,
"ssh_keyfile": null,
"timeout": null,
"username": null,
"wait_for": null
}
},
"msg": "{u'answer': None, u'prompt': None, u'command': u'show run-config commands'}\r\n\r\nIncorrect usage. Use the '?' or <TAB> key to list commands.\r\n\r\n(WLC01) >",
"rc": -32603
}
2019-08-07 14:00:08,926 p=wsmith u=16872 | PLAY RECAP **********************************************************************************************************************************************************************************************
2019-08-07 14:00:08,927 p=wsmith u=16872 | WLC01 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2019-08-07 14:00:09,025 p=wsmith u=16886 | shutdown complete
```
| https://github.com/ansible/ansible/issues/60237 | https://github.com/ansible/ansible/pull/60243 | 30cc54da8cc4efd7a554df964b0f7bddfde0c9c4 | 50d1cbd30a8e19bcce312bd429acb4b690255f51 | 2019-08-07T21:07:19Z | python | 2019-10-01T20:52:35Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,227 | ["docs/docsite/rst/dev_guide/testing/sanity/bin-symlinks.rst", "test/lib/ansible_test/_internal/ansible_util.py", "test/lib/ansible_test/_internal/data.py", "test/lib/ansible_test/_internal/delegation.py", "test/lib/ansible_test/_internal/payload.py", "test/lib/ansible_test/_internal/provider/layout/__init__.py", "test/lib/ansible_test/_internal/provider/source/installed.py", "test/lib/ansible_test/_internal/provider/source/unversioned.py", "test/lib/ansible_test/_internal/sanity/bin_symlinks.py", "test/lib/ansible_test/_internal/util.py"] | Move remaining ansible-test files into test/lib/ | ##### SUMMARY
Move the remaining files needed by `ansible-test` into the `test/lib/ansible_test/` directory. This is required to implement: https://github.com/ansible/ansible/issues/59884
##### ISSUE TYPE
Feature Idea
##### COMPONENT NAME
ansible-test
| https://github.com/ansible/ansible/issues/60227 | https://github.com/ansible/ansible/pull/60297 | 07051473f82faea238084fe653264fd24a24ff46 | 39b3fc0926645b26d60588af6a068c7570b778cf | 2019-08-07T17:58:13Z | python | 2019-08-09T04:34:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,218 | ["test/lib/ansible_test/_internal/provider/layout/collection.py", "test/lib/ansible_test/_internal/provider/source/unversioned.py"] | Allow use of 'tests' directory for storage of ansible-test tests and config |
##### SUMMARY
Many developers are used to storing testing code in a `tests/` directory in their project root, but the way `ansible-test` works currently requires testing code be stored only in a `test/` directory only.
It would be nice to either allow tests to be picked up from `test/` _or_ `tests/`, or to maybe pass a cli option (like `--test-dir`) or environment variable to specify the directory containing the testing code.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
ansible-test
##### ADDITIONAL INFORMATION
N/A | https://github.com/ansible/ansible/issues/60218 | https://github.com/ansible/ansible/pull/61501 | 460b583dffa5368f995002861c52d1376ea49a32 | 81ca44b7e5c16e05d6bf48a7466f972705bfb8b1 | 2019-08-07T15:59:39Z | python | 2019-08-29T02:15:36Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,167 | ["changelogs/fragments/ansible-galaxy-role-list-specific-fix.yml", "lib/ansible/cli/galaxy.py", "lib/ansible/galaxy/role.py", "test/integration/targets/ansible-galaxy/runme.sh"] | galaxy-info --offline option doesn't work | ##### SUMMARY
Running `ansible-galaxy info` command using --offline option does not give the "description" information from role_name/meta/main.yml.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
roles
##### ANSIBLE VERSION
```
2.8
```
##### STEPS TO REPRODUCE
```
ansible-galaxy init my-role
- my-role was created successfully
```
Executing the following command, you can't see the "description" information.
```
ansible-galaxy info --offline --roles-path=/home/user my-role
Role: my-role
description:
dependencies: []
galaxy_info:
author: your name
company: your company (optional)
galaxy_tags: []
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.4
path: (u'/home/user', u'/home/user/.ansible/roles', u'/usr/share/ansible/roles', u'/etc/ansible/roles')
```
##### EXPECTED RESULTS
```
Role: my-role
dependencies: []
galaxy_info:
author: your name
description: your description >> description goes here
company: your company (optional)
galaxy_tags: []
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.4
path: (u'/home/user', u'/home/user/.ansible/roles', u'/usr/share/ansible/roles', u'/etc/ansible/roles')
```
Changing the `meta/main.yml` to the following code, it works:
```
description: your description
galaxy_info:
author: your name
company: your company (optional)
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.4
galaxy_tags: []
dependencies: []
```
Command/output:
```
ansible-galaxy info --offline --roles-path=/home/user my-role
Role: my-role
description: your description
dependencies: []
galaxy_info:
author: your name
company: your company (optional)
galaxy_tags: []
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.4
path: (u'/home/user', u'/home/user/.ansible/roles', u'/usr/share/ansible/roles', u'/etc/ansible/roles')
``` | https://github.com/ansible/ansible/issues/60167 | https://github.com/ansible/ansible/pull/67409 | d3d301e776e636e8791f7a66ed91984ea6ca471b | cdb24e0078d738f87fc20e67c2b7bcbf45f8e248 | 2019-08-06T21:45:52Z | python | 2020-04-15T19:26:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,166 | ["test/lib/ansible_test/_internal/provider/layout/__init__.py", "test/lib/ansible_test/_internal/provider/layout/ansible.py", "test/lib/ansible_test/_internal/provider/layout/collection.py"] | ansible-test sanity AttributeError: 'NoneType' object has no attribute 'endswith' after test/sanity/ignore-2.9.txt | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
When testing ansible-test sanity with a collection, I see the following traceback, at first I thought it was because of a missing file, but adding it doesn't fix the issue.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-test
##### ANSIBLE VERSION
923e21836b1a4fb91aa6e93463efe0aea4022144 Move plugin loader playbook dir additions back to Playbook instead of PlaybookCLI (#59557)
##### CONFIGURATION
https://logs.zuul.ansible.com/34/34/89748bcccaba051183f1e8819502c7398b4d2206/check/ansible-test-sanity/c8e84e5/zuul-info/inventory.yaml
##### OS / ENVIRONMENT
fedora 29 from zuul.ansible.com
##### STEPS TO REPRODUCE
Run ansible-test with the following:
source ~/venv/bin/activate; /home/zuul/src/github.com/ansible/ansible/bin/ansible-test sanity -vv --requirements --python 3.6 --lint
from
/home/zuul/src/github.com/ansible-network/sandbox/ansible_collections/ansible_network/sandbox
example logs: https://logs.zuul.ansible.com/34/34/89748bcccaba051183f1e8819502c7398b4d2206/check/ansible-test-sanity/c8e84e5/ara-report/result/7b2fad99-9bc4-41bc-a264-b71819b0d659/
##### EXPECTED RESULTS
ansible-test to pass
##### ACTUAL RESULTS
https://logs.zuul.ansible.com/34/34/89748bcccaba051183f1e8819502c7398b4d2206/check/ansible-test-sanity/c8e84e5/job-output.html#l1031
```
2019-08-06 21:13:50.017154 | fedora-29 | Traceback (most recent call last):
2019-08-06 21:13:50.017311 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/bin/ansible-test", line 15, in <module>
2019-08-06 21:13:50.017361 | fedora-29 | lib.cli.main()
2019-08-06 21:13:50.017454 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/cli.py", line 125, in main
2019-08-06 21:13:50.017540 | fedora-29 | args.func(config)
2019-08-06 21:13:50.017686 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/__init__.py", line 156, in command_sanity
2019-08-06 21:13:50.017748 | fedora-29 | settings = test.load_processor(args)
2019-08-06 21:13:50.017853 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/__init__.py", line 803, in load_processor
2019-08-06 21:13:50.017911 | fedora-29 | return SanityIgnoreProcessor(args, self, None)
2019-08-06 21:13:50.018011 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/__init__.py", line 448, in __init__
2019-08-06 21:13:50.018089 | fedora-29 | self.parser = SanityIgnoreParser.load(args)
2019-08-06 21:13:50.018193 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/__init__.py", line 426, in load
2019-08-06 21:13:50.018290 | fedora-29 | SanityIgnoreParser.instance = SanityIgnoreParser(args)
2019-08-06 21:13:50.018450 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/__init__.py", line 278, in __init__
2019-08-06 21:13:50.018574 | fedora-29 | paths_by_test[test.name] = set(target.path for target in test.filter_targets(test_targets))
2019-08-06 21:13:50.018711 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/import.py", line 62, in filter_targets
2019-08-06 21:13:50.018806 | fedora-29 | return [target for target in targets if os.path.splitext(target.path)[1] == '.py' and
2019-08-06 21:13:50.018908 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/sanity/import.py", line 63, in <listcomp>
2019-08-06 21:13:50.019077 | fedora-29 | (is_subdir(target.path, data_context().content.module_path) or is_subdir(target.path, data_context().content.module_utils_path))]
2019-08-06 21:13:50.019178 | fedora-29 | File "/home/zuul/src/github.com/ansible/ansible/test/runner/lib/util.py", line 782, in is_subdir
2019-08-06 21:13:50.019225 | fedora-29 | if not path.endswith(os.sep):
2019-08-06 21:13:50.019291 | fedora-29 | AttributeError: 'NoneType' object has no attribute 'endswith'
```
| https://github.com/ansible/ansible/issues/60166 | https://github.com/ansible/ansible/pull/60169 | 233efe08862094d9015320570fa419b7dcb0cd49 | 9da5908afba1453040b32747a6707bd373ad0ff2 | 2019-08-06T21:22:54Z | python | 2019-08-06T23:07:53Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,157 | ["lib/ansible/cli/galaxy.py", "lib/ansible/galaxy/collection.py", "lib/ansible/utils/display.py", "test/units/galaxy/test_collection.py", "test/units/galaxy/test_collection_install.py"] | Show progress indicator on CLI while collection is being published | ##### SUMMARY
When I publish a collection to Galaxy, I see nothing in my console indicating activity, so I wonder if something is stuck.
Reading the [Collections documentation](https://docs.ansible.com/ansible/devel/dev_guide/collections_tech_preview.html#building-collections), I can see:
> The command waits until the import process completes before reporting the status back. If you wish to continue without waiting for the import result, use the --no-wait argument and manually look at the import progress in your My Imports page.
But it's not apparent just using the CLI, and it would be nice if there was at least something like a row of dots or a spinner or something (even just `|/-\\` in rotation) to just show that something is happening and the process is not locked up.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
`ansible-galaxy collection publish`
##### ADDITIONAL INFORMATION
N/A | https://github.com/ansible/ansible/issues/60157 | https://github.com/ansible/ansible/pull/60660 | c81a1057e10ca433a99af31158ec5a0c597f6d2d | e04b2a9697512bc64d2613033274e67fbfbd26c7 | 2019-08-06T20:07:42Z | python | 2019-08-22T20:27:28Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,129 | ["changelogs/fragments/60204-handle-KeyError-in-get_vm-API.yml", "lib/ansible/module_utils/vmware.py"] | VMware: get_vm() fails with KeyError if uuid is not in the module param | ##### SUMMARY
get_vm() method vmware.py module utility fails with KeyError if uuid is not in the module param from whch method is invoked
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vmware.py module util
##### ANSIBLE VERSION
```
ansible 2.9.0.dev0
```
##### OS / ENVIRONMENT
Ubuntu 16
##### STEPS TO REPRODUCE
Creating new module. 'uuid' is not in my module arguments.
Called get_vm()
pyv = PyVmomi(module=module)
vm = pyv.get_vm()
##### EXPECTED RESULTS
Call should return vm_id if it exists
##### ACTUAL RESULTS
```
Get error
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'uuid'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File
\"/home/vmware/.ansible/tmp/ansible-tmp-1565095783.75439-259726275713856/AnsiballZ_vmware_content_deploy_template.py\", line 125, in <module>\n _ansiballz_main()\n File \"/home/vmware/.ansible/tmp/ansible-tmp-1565095783.75439-259726275713856/AnsiballZ_vmware_content_deploy_template.py\", line 117, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/vmware/.ansible/tmp/ansible-tmp-1565095783.75439-259726275713856/AnsiballZ_vmware_content_deploy_template.py\", line 51, in invoke_module\n spec.loader.exec_module(module)\n File \"<frozen importlib._bootstrap_external>\", line 665, in exec_module\n File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\n File \"/tmp/ansible_vmware_content_deploy_template_payload_69cftg21/__main__.py\", line 271, in <module>\n File \"/tmp/ansible_vmware_content_deploy_template_payload_69cftg21/__main__.py\", line 241, in main\n File \"/tmp/ansible_vmware_content_deploy_template_payload_69cftg21/ansible_vmware_content_deploy_template_payload.zip/ansible/module_utils/vmware.py\", line 891,
in get_vm\nKeyError: 'uuid'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
```
| https://github.com/ansible/ansible/issues/60129 | https://github.com/ansible/ansible/pull/60204 | 8cbfa75038a7657c5c91bdf2fc59380dc463a1d3 | 0a90ec90c069fc7bbb06864711a6cafb699aef85 | 2019-08-06T12:36:30Z | python | 2019-08-12T08:33:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,111 | ["lib/ansible/module_utils/redfish_utils.py", "lib/ansible/modules/remote_management/redfish/redfish_config.py"] | redfish_config can't set boot order on Huawei server (multiple attributes required) | ##### SUMMARY
Trying to set the boot order on a Huawei 2288H V5 via iBMC/redfish, redfish_config module fails because it needs to set the 4 `BootTypeOrderX` at the same time, and we currently only have the option to set 1 at a time
This report is in between `Bug Report` and `Feature Idea`
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
redfish_config
##### ANSIBLE VERSION
```
ansible 2.9.0.dev0
config file = /home/echampetier/git/ops/provisioning/ansible.cfg
configured module search path = [u'/home/echampetier/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.16 (default, Apr 30 2019, 15:54:43) [GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
```
##### CONFIGURATION
```
ANSIBLE_PIPELINING(/home/echampetier/git/ops/provisioning/ansible.cfg) = True
DEFAULT_CALLBACK_WHITELIST(/home/echampetier/git/ops/provisioning/ansible.cfg) = [u'profile_tasks']
DEFAULT_REMOTE_USER(/home/echampetier/git/ops/provisioning/ansible.cfg) = root
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Fedora 30
Huawei 2288H V5 with iBMC 3.55 (U4282)
##### STEPS TO REPRODUCE
```yaml
- name: Set Bios config
redfish_config:
category: Systems
command: SetBiosAttributes
bios_attribute_name: "BootTypeOrder0"
bios_attribute_value: "Others"
baseuri: "{{ ibmc_ip }}"
username: "{{ ibmc_user }}"
password: "{{ ibmc_pass }}"
delegate_to: localhost
```
##### EXPECTED RESULTS
It works !
##### ACTUAL RESULTS
```
Using module file /usr/lib/python2.7/site-packages/ansible/modules/remote_management/redfish/redfish_config.py
Pipelining is enabled.
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: echampetier
<localhost> EXEC /bin/sh -c '/usr/bin/python2 && sleep 0'
fatal: [192.168.1.3 -> localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"baseuri": "192.168.1.2",
"bios_attribute_name": "BootTypeOrder0",
"bios_attribute_value": "Others",
"category": "Systems",
"command": [
"SetBiosAttributes"
],
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"timeout": 10,
"username": "Administrator"
}
},
"msg": "HTTP Error 400 on PATCH request to 'https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings', extended message: 'Failed to set the BIOS boot order.'"
}
```
When using curl:
```
$ curl -u 'Administrator:<redacted>' -XPATCH https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings -d '{"Attributes": {"BootTypeOrder0": "Others"}}' -k -vvv -H 'Content-Type: application/json' -H 'If-Match: W/"6168147f"' -s | jq .
...
< HTTP/1.1 400 Bad Request
< Date: Mon, 05 Aug 2019 21:31:18 GMT
< X-Frame-Options: SAMEORIGIN
< X-Download-Options: noopen
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'
< OData-Version: 4.0
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< Content-Length: 535
< X-XSS-Protection: 1; mode=block
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< X-Content-Type-Options: nosniff
< Expires: 0
< Connection: close
< Content-Type: application/json;charset=utf-8
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "/redfish/v1/$metadata#MessageRegistry.1.0.0.MessageRegistry",
"MessageId": "iBMC.1.0.SettingBootOrderFailed",
"RelatedProperties": [],
"Message": "Failed to set the BIOS boot order.",
"MessageArgs": [],
"Severity": "Warning",
"Resolution": "Check that the four property names are correct, all the four properties are set, and the property values are different from each other."
}
]
}
}
```
And when sending the 4 at the same time it works
```
$ curl -u 'Administrator:<redacted>' -XPATCH https://192.168.1.2/redfish/v1/Systems/1/Bios/Settings -d '{"Attributes": {"BootTypeOrder0":"Others", "BootTypeOrder1":"HardDiskDrive", "BootTypeOrder2":"DVDROMDrive", "BootTypeOrder3":"PXE"}}' -k -vvv -H 'Content-Type: application/json' -H 'If-Match: W/"6168147f"' -s | jq .
...
< HTTP/1.1 200 OK
< Date: Mon, 05 Aug 2019 21:34:08 GMT
< X-Frame-Options: SAMEORIGIN
< X-Download-Options: noopen
< Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'
< OData-Version: 4.0
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< ETag: W/"7d41337e"
< Content-Length: 705
< X-XSS-Protection: 1; mode=block
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< X-Content-Type-Options: nosniff
< Expires: 0
< Content-Type: application/json;charset=utf-8
<
{
"@odata.context": "/redfish/v1/$metadata#Systems/Members/1/Bios/Settings/$entity",
"@odata.id": "/redfish/v1/Systems/1/Bios/Settings",
"@odata.type": "#Bios.v1_0_0.Bios",
"Id": "Settings",
"Name": "BIOS Configuration Pending Settings",
"AttributeRegistry": "BiosAttributeRegistry.1.9.9",
"Attributes": {
"BootTypeOrder0": "Others",
"BootTypeOrder1": "HardDiskDrive",
"BootTypeOrder2": "DVDROMDrive",
"BootTypeOrder3": "PXE"
},
"Actions": {
"Oem": {
"Huawei": {
"#Settings.Revoke": {
"target": "/redfish/v1/Systems/1/Bios/Settings/Actions/Oem/Huawei/Settings.Revoke",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/Settings/SettingsRevokeActionInfo"
}
}
}
}
}
```
| https://github.com/ansible/ansible/issues/60111 | https://github.com/ansible/ansible/pull/62764 | ec1c5585af424f4c43fa7a16cbf82c2571045415 | b4cd9086dca54ae2865d6c54917924959ecf9eb8 | 2019-08-05T21:43:24Z | python | 2019-10-31T14:47:05Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,106 | ["changelogs/fragments/60106-templar-contextmanager.yml", "lib/ansible/plugins/action/ce_template.py", "lib/ansible/plugins/action/network.py", "lib/ansible/plugins/action/template.py", "lib/ansible/plugins/lookup/template.py", "lib/ansible/template/__init__.py"] | Template lookup start string breaks environment vars parsing | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
When we create a playbook with environment variables defined from input variables, if one of the tasks in this playbooks use a template lookup plugin with a start/end string different from default, it also changes the start/end string used to parse the environment variable and breaks its parsing.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
Template Lookup Plugin
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = None
configured module search path = [u'/home/USER/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Create the playbook presented below, also create an empty file called dummy.yaml.j2.
Execute the playbook with `ansible-playbook playbook.yaml -e test_entry=lalala`
<!--- Paste example playbooks or commands between quotes below -->
```yaml
# Bug example
- hosts: localhost
gather_facts: false
environment:
TEST_ENV: "{{ test_entry }}"
tasks:
- name: Test 1
command: "echo ${TEST_ENV} {{ lookup('template', 'dummy.yaml.j2') }}"
register: output
- debug:
msg: "{{ output.stdout }}"
- name: Test 2
command: "echo ${TEST_ENV} {{ lookup('template', 'dummy.yaml.j2', variable_start_string='[%', variable_end_string='%]') }}"
register: output
- debug:
msg: "{{ output.stdout }}"
- name: Test 3
command: "echo ${TEST_ENV} {{ lookup('template', 'dummy.yaml.j2', variable_start_string='[%', variable_end_string='%]') }}"
environment:
TEST_ENV: "[% test_entry %]"
register: output
- debug:
msg: "{{ output.stdout }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
The expected result was that Debug 1 and 2 output the correct result "lalala" and Debug 3
output output "[% test_entry %]" as it is just a workaround to the bug.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
What happened was that debug 1 had the right output, debug 2 had the variable parsing broken by the lookup and debug 3 worked as a workaround to the issue, which should not be necessary.
<!--- Paste verbatim command output between quotes -->
```paste below
USER@USER-note:~/workspace/tf-infra$ansible-playbook -e test_entry=lalala playbooks/test.yaml -vvvv
ansible-playbook 2.8.3
config file = None
configured module search path = [u'/home/USER/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
No config file found; using defaults
setting up inventory plugins
host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
script declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
yaml declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
ini declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
toml declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: test.yaml ***************************************************************************************************************************************************************
Positional arguments: playbooks/test.yaml
become_method: sudo
inventory: (u'/etc/ansible/hosts',)
forks: 5
tags: (u'all',)
extra_vars: (u'test_entry=lalala',)
verbosity: 4
connection: smart
timeout: 10
1 plays in playbooks/test.yaml
PLAY [localhost] ******************************************************************************************************************************************************************
META: ran handlers
TASK [Test 1] *********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:10
File lookup using /home/USER/workspace/playbooks/dummy.yaml.j2 as file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: USER
<127.0.0.1> EXEC /bin/sh -c 'echo ~USER && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383 `" && echo ansible-tmp-1565035196.17-187587540004383="` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383 `" ) && sleep 0'
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/USER/.ansible/tmp/ansible-local-299637oQZ14/tmpFL3AO6 TO /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383/ /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'TEST_ENV=lalala /usr/bin/python /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/USER/.ansible/tmp/ansible-tmp-1565035196.17-187587540004383/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"cmd": [
"echo",
"${TEST_ENV}"
],
"delta": "0:00:00.002597",
"end": "2019-08-05 16:59:56.387369",
"invocation": {
"module_args": {
"_raw_params": "echo ${TEST_ENV} ",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2019-08-05 16:59:56.384772",
"stderr": "",
"stderr_lines": [],
"stdout": "lalala",
"stdout_lines": [
"lalala"
]
}
TASK [debug] **********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:14
ok: [localhost] => {
"msg": "lalala"
}
TASK [Test 2] *********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:17
File lookup using /home/USER/workspace/playbooks/dummy.yaml.j2 as file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: USER
<127.0.0.1> EXEC /bin/sh -c 'echo ~USER && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145 `" && echo ansible-tmp-1565035196.46-279367437516145="` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145 `" ) && sleep 0'
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/USER/.ansible/tmp/ansible-local-299637oQZ14/tmpriIGjL TO /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145/ /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'TEST_ENV='"'"'{{ test_entry }}'"'"' /usr/bin/python /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/USER/.ansible/tmp/ansible-tmp-1565035196.46-279367437516145/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"cmd": [
"echo",
"${TEST_ENV}"
],
"delta": "0:00:00.002174",
"end": "2019-08-05 16:59:56.551546",
"invocation": {
"module_args": {
"_raw_params": "echo ${TEST_ENV} ",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2019-08-05 16:59:56.549372",
"stderr": "",
"stderr_lines": [],
"stdout": "{{ test_entry }}",
"stdout_lines": [
"{{ test_entry }}"
]
}
TASK [debug] **********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:21
ok: [localhost] => {
"msg": "{{ test_entry }}"
}
TASK [Test 3] *********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:24
File lookup using /home/USER/workspace/playbooks/dummy.yaml.j2 as file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: USER
<127.0.0.1> EXEC /bin/sh -c 'echo ~USER && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187 `" && echo ansible-tmp-1565035196.61-117891973732187="` echo /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187 `" ) && sleep 0'
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/USER/.ansible/tmp/ansible-local-299637oQZ14/tmpKaHwr_ TO /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187/ /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'TEST_ENV=lalala /usr/bin/python /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/USER/.ansible/tmp/ansible-tmp-1565035196.61-117891973732187/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"cmd": [
"echo",
"${TEST_ENV}"
],
"delta": "0:00:00.002216",
"end": "2019-08-05 16:59:56.713032",
"invocation": {
"module_args": {
"_raw_params": "echo ${TEST_ENV} ",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2019-08-05 16:59:56.710816",
"stderr": "",
"stderr_lines": [],
"stdout": "lalala",
"stdout_lines": [
"lalala"
]
}
TASK [debug] **********************************************************************************************************************************************************************
task path: /home/USER/workspace/playbooks/test.yaml:30
ok: [localhost] => {
"msg": "lalala"
}
META: ran handlers
META: ran handlers
PLAY RECAP ************************************************************************************************************************************************************************
localhost : ok=6 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/60106 | https://github.com/ansible/ansible/pull/60513 | 92d621202601ec8ac1aed020f6c338655d8a660d | cdb7ab61a0f23f98e7c01fc46ecb47c3fd078aec | 2019-08-05T20:02:56Z | python | 2019-10-25T14:51:57Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,102 | ["lib/ansible/modules/cloud/amazon/route53.py", "test/integration/targets/route53/tasks/main.yml"] | route53: Skip zone listing when hosted_zone_id is set | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Improve route53 module performance when ZoneID is know
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
route53
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /home/bruno/.ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
* Define a long list of DNS records
* Use a `loop` with `route53` module to update them
<!--- Paste example playbooks or commands between quotes below -->
```yaml
route53:
state: present
zone: example.com # should not be required when hosted_zone_id is present
private_zone: true # should not be needed when hosted_zone_id is present
hosted_zone_id: "XXXXXXXXXXX"
record: "{{ item.name }}"
ttl: "{{ item.ttl }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
overwrite: true
with_items: "{{ dns_records }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Since hosted_zone_id is provided, this should be a simple request to Route53 API
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Currently the code in [route53.py](https://github.com/ansible/ansible/blob/41235ac05a7a52f102422da17d40b5952e722095/lib/ansible/modules/cloud/amazon/route53.py#L567) do a zone lookup witch may lead to a full listing with (possibly) pagination by boto.
This lookup returns a `zone` reference but only it's `id` attribute is read.
So, since the hosted_zone_id is the same id obtained above, and is developer responsibility to ensure it's correct, this lookup should be ignored and the provided hosted_zone_id used in place.
<!--- Paste verbatim command output between quotes -->
| https://github.com/ansible/ansible/issues/60102 | https://github.com/ansible/ansible/pull/60437 | e258ba703eafc8dd168b3a7e21f960c1847f5769 | 954416932ae72efbbc693292f6f3cfa7dcc73705 | 2019-08-05T17:56:53Z | python | 2019-08-26T23:21:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,068 | ["lib/ansible/modules/windows/win_dns_record.py"] | win_dns_record incorrectly creates PTR records | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
When specifying a PTR record, the module incorrectly creates the entry.
- name: Create PTR Record
win_dns_record:
computer_name: "msdnsserver.example.com"
name: "10.202.64.62"
state: present
type: "PTR"
value: "awx_test.example.com"
zone: "10.in-addr.arpa"
Entry created:
10.62.64.202.10 Pointer (PTR) awx_test.example.com
To correctly create the record I used the following format:
- name: Create PTR Record
win_dns_record:
computer_name: "msdnsserver.example.com"
name: "62.64.202"
state: present
type: "PTR"
value: "awx_test.example.com"
zone: "10.in-addr.arpa"
which created record:
10.202.64.62 Pointer (PTR) awx_test.example.com
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
win_dns_record
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
# ansible --version
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
# ansible-config dump --only-changed
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
DEFAULT_LOAD_CALLBACK_PLUGINS(/etc/ansible/ansible.cfg) = True
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log
SHOW_CUSTOM_STATS(/etc/ansible/ansible.cfg) = True
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Red Hat Enterprise Linux Server release 7.6 (Maipo)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Create PTR Record
win_dns_record:
computer_name: "msdnsserver.example.com"
name: "10.202.64.62"
state: present
type: "PTR"
value: "awx_test.example.com"
zone: "10.in-addr.arpa"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
10.202.64.62 Pointer (PTR) awx_test.example.com
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
10.62.64.202.10 Pointer (PTR) awx_test.example.com
```
| https://github.com/ansible/ansible/issues/60068 | https://github.com/ansible/ansible/pull/60158 | 6c09b5c65989b6c637fd58a8a892619f60906d49 | b5f42869dc20a6a5c2fafcb4b3df15028e1de7b1 | 2019-08-05T13:04:30Z | python | 2019-08-09T16:04:09Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,043 | ["lib/ansible/modules/database/postgresql/postgresql_membership.py", "lib/ansible/modules/database/postgresql/postgresql_ping.py", "lib/ansible/modules/database/postgresql/postgresql_slot.py", "lib/ansible/modules/database/postgresql/postgresql_tablespace.py"] | "Database name has not been passed, used default database to connect to." | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
postgresql_slot, postgresql_user
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.7.4 (default, Jul 16 2019, 07:12:58) [GCC 9.1.0]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
archlinux latest
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- postgresql_user:
name: user1
password: password
become: true
become_user: postgres
- postgresql_slot:
name: slot1
become: true
become_user: postgres
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Consistent warnings. Either both postgresql_user and postgresql_slot should give a warning or neither should.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
postgresql_slot gives warning "[WARNING]: Database name has not been passed, used default database to connect to." but postgresql_user doesn't, even though both of them have not specified a database. | https://github.com/ansible/ansible/issues/60043 | https://github.com/ansible/ansible/pull/60105 | aecdfd397ee7e96d7f2b40e3da2cbd24b7bc3f94 | d2cc9f5f06816935747638f5b4019b84d5932a51 | 2019-08-03T17:32:34Z | python | 2019-08-05T20:28:00Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 60,000 | ["bin/ansible", "bin/ansible", "bin/ansible-connection", "bin/ansible-connection", "lib/ansible/cli/scripts/__init__.py", "lib/ansible/cli/scripts/ansible_cli_stub.py", "lib/ansible/cli/scripts/ansible_connection_cli_stub.py", "test/sanity/ignore.txt"] | Move CLI script impls under ansible package | ##### SUMMARY
To ensure that `ansible-test` as a first-class-citizen can always locate the correct (and unmodified) Ansible scripts for its invocation in all circumstances, we need to move them under `lib/ansible` and change the top-level bin dir to symlinks (which setuptools will copy/modify on install and hacking/env-setup will just use).
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
bin/ansible
##### ADDITIONAL INFORMATION
| https://github.com/ansible/ansible/issues/60000 | https://github.com/ansible/ansible/pull/60004 | 97d36881e21dd6bd714cae0a5af020d20bedfafb | 8d1f658ce46e74f537bf1df610ddef4b2bfb035f | 2019-08-02T16:55:21Z | python | 2019-08-02T18:27:02Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,988 | ["changelogs/fragments/allow_ansible_ns.yml", "lib/ansible/utils/collection_loader.py", "test/integration/targets/collections/collection_root_user/ansible_collections/ansible/builtin/plugins/modules/ping.py", "test/integration/targets/collections/collection_root_user/ansible_collections/ansible/bullcoll/plugins/modules/bullmodule.py", "test/integration/targets/collections/posix.yml"] | Collection does not work when namespace is ansible | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Modules that I create inside collections that exist in the `ansible` namespace do not work.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-galaxy
collections
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.9.0.dev0
config file = None
configured module search path = ['/home/meyers/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/meyers/ansible/virtualenv/ansible-dev3/local/lib/python3.7/site-packages/ansible
executable location = /home/meyers/ansible/virtualenv/ansible-dev3/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
```
##### CONFIGURATION
blank
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
* Create two adjacent collections `a.foo` and `ansible.foo` w/ a single module, `my_test.py`.
* Call the module via `ansible.foo.my_test` and `a.foo.my_test`
<!--- Paste example playbooks or commands between quotes below -->
`collections/ansible_collections/ansible/foo/plugins/modules/my_test.py`
```yaml
# my_test.py
#!/usr/bin/python
# Copyright: (c) 2018, Terry Jones <[email protected]>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: my_test
short_description: This is my test module
version_added: "2.4"
description:
- "This is my longer description explaining my test module"
options:
name:
description:
- This is the message to send to the test module
required: true
new:
description:
- Control to demo if the result of this module is changed or not
required: false
extends_documentation_fragment:
- azure
author:
- Your Name (@yourhandle)
'''
EXAMPLES = '''
# Pass in a message
- name: Test with a message
my_test:
name: hello world
# pass in a message and have changed true
- name: Test with a message and changed output
my_test:
name: hello world
new: true
# fail the module
- name: Test failure of the module
my_test:
name: fail me
'''
RETURN = '''
original_message:
description: The original name param that was passed in
type: str
returned: always
message:
description: The output message that the test module generates
type: str
returned: always
'''
from ansible.module_utils.basic import AnsibleModule
def run_module():
# define available arguments/parameters a user can pass to the module
module_args = dict(
name=dict(type='str', required=True),
new=dict(type='bool', required=False, default=False)
)
# seed the result dict in the object
# we primarily care about changed and state
# change is if this module effectively modified the target
# state will include any data that you want your module to pass back
# for consumption, for example, in a subsequent task
result = dict(
changed=False,
original_message='',
message=''
)
# the AnsibleModule object will be our abstraction working with Ansible
# this includes instantiation, a couple of common attr would be the
# args/params passed to the execution, as well as if the module
# supports check mode
module = AnsibleModule(
argument_spec=module_args,
supports_check_mode=True
)
# if the user is working with this module in only check mode we do not
# want to make any changes to the environment, just return the current
# state with no modifications
if module.check_mode:
module.exit_json(**result)
# manipulate or modify the state as needed (this is going to be the
# part where your module will do what it needs to do)
result['original_message'] = module.params['name']
result['message'] = 'goodbye'
# use whatever logic you need to determine whether or not this module
# made any modifications to your target
if module.params['new']:
result['changed'] = True
# during the execution of the module, if there is an exception or a
# conditional state that effectively causes a failure, run
# AnsibleModule.fail_json() to pass in the message and the result
if module.params['name'] == 'fail me':
module.fail_json(msg='You requested this to fail', **result)
# in the event of a successful module execution, you will want to
# simple AnsibleModule.exit_json(), passing the key/value results
module.exit_json(**result)
def main():
run_module()
if __name__ == '__main__':
main()
```
```yaml
# main.yml
- hosts: localhost
gather_facts: false
tasks:
- ansible.foo.my_test:
name: "hello world"
- a.foo.my_test:
name: "hello world"
```
Copy the ansible subdir into a.
```
.
├── collections
│ └── ansible_collections
│ ├── a
│ │ └── foo
│ │ └── plugins
│ │ └── modules
│ │ └── my_test.py
│ └── ansible
│ └── foo
│ └── plugins
│ └── modules
│ └── my_test.py
└── main.yml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
* For both `ansible.foo.my_test` and `a.foo.my_test` to succeed.
##### ACTUAL RESULTS
* `ansible.foo.my_test` fails because the module can not be found (see below)
<!--- Paste verbatim command output between quotes -->
```
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to be in '/home/meyers/ansible/ansible-examples/collection_ansible_namespace/main.yml': line 4, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- ansible.foo.my_test:
```
| https://github.com/ansible/ansible/issues/59988 | https://github.com/ansible/ansible/pull/61908 | f58899eef7bce5a682a52d33914d644e494ff898 | 7f4328ad1261295d43f58f3ebc42444ac03cc5ea | 2019-08-02T15:40:51Z | python | 2019-09-06T01:50:22Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,987 | ["changelogs/fragments/60059-aws-kms-update-policy.yml", "hacking/aws_config/testing_policies/security-policy.json", "lib/ansible/modules/cloud/amazon/aws_kms.py", "test/integration/targets/aws_kms/tasks/main.yml", "test/integration/targets/aws_kms/templates/console-policy.j2"] | aws_kms doesn't update policy | ##### SUMMARY
If you attempt to modify the policy on an existing KMS CMK using aws_kms's "policy" option this doesn't appear to get updated.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/modules/cloud/amazon/aws_kms.py
##### ANSIBLE VERSION
```
ansible 2.8.1
config file = /home/mchappel/.ansible.cfg
configured module search path = [u'/home/mchappel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
```
DEFAULT_CALLBACK_WHITELIST(/home/mchappel/.ansible.cfg) = [u'timer', u'profile_tasks']
HOST_KEY_CHECKING(/home/mchappel/.ansible.cfg) = False
RETRY_FILES_ENABLED(/home/mchappel/.ansible.cfg) = False
```
##### OS / ENVIRONMENT
RHEL7 + AWS
##### STEPS TO REPRODUCE
- Create KMS CMK
- Attempt to update policy using the 'policy' option on aws_kms
```
- name: 'Update policy on KMS Keys'
aws_kms:
key_id: '{{ kms_key.id }}'
alias: '{{ kms_key.alias | default(omit) }}'
policy: ' {{ kms_current_policy | to_json }}'
```
##### EXPECTED RESULTS
KMS Policy is updated
##### ACTUAL RESULTS
KMS Policy stays the same | https://github.com/ansible/ansible/issues/59987 | https://github.com/ansible/ansible/pull/60059 | 25053827a5444dba4e37b2d58fcb5ac94729c3f1 | 77e4371460d4579c8a26c1511220d2bebcd4a1ca | 2019-08-02T15:39:30Z | python | 2019-08-23T10:38:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,976 | ["lib/ansible/modules/source_control/gitlab_deploy_key.py", "lib/ansible/modules/source_control/gitlab_group.py", "lib/ansible/modules/source_control/gitlab_hook.py", "lib/ansible/modules/source_control/gitlab_project.py", "lib/ansible/modules/source_control/gitlab_runner.py", "lib/ansible/modules/source_control/gitlab_user.py"] | gitlab_runner module: Misleading deprecation warnings in Ansible 2.8 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
The gitlab_runner module throws deprecation warnings for an option I don't use and another option that is not actually deprecated
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
'gitlab_runner' module
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/m/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/m/.local/lib/python3.6/site-packages/ansible
executable location = /home/m/.local/bin/ansible
python version = 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_REMOTE_USER(/etc/ansible/ansible.cfg) = root
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Target: Debian Buster, freshly installed. Kernel 4.19.0-5-amd64, Python versions 2.7.16 and 3.7.3
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Create a task using the gitlab_runner module. Here is the task I use:
<!--- Paste example playbooks or commands between quotes below -->
```
m@void:~/work/ansible-default-deployment$ cat roles/gitlab-runner/tasks/main.yml
---
- name: Install python-gitlab via pip
pip:
name: python-gitlab
state: present
- name: Register runner
gitlab_runner:
url: <redacted>
api_token: "{{ gitlab_api_token }}"
registration_token: "{{ gitlab_runner_registration_token }}"
description: "Auto-created runner for project {{ project_name }}"
state: present
active: False
tag_list: ['docker', '{{project_name}}']
run_untagged: False
locked: False
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
- I expect no deprecation warning for the `url` parameter because it is described as a required parameter with no possible alternative, and it is not marked as deprecated even in the 'devel' docs
- I expect no deprecation warning for the `login_token` parameter because I don't use it
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
This is the output of running the aforenmentioned task:
<!--- Paste verbatim command output between quotes -->
```
TASK [gitlab-runner : Register runner] *************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Param 'url' is deprecated. See the module docs for more information. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Aliases 'login_token' are deprecated. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [redacted]
```
| https://github.com/ansible/ansible/issues/59976 | https://github.com/ansible/ansible/pull/60425 | e9d10f94b7722710c50f9923c7a7eea652a98228 | 7bb90999d31951ebd41f612626e9f60e5965a564 | 2019-08-02T11:49:41Z | python | 2019-10-14T19:58:21Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,972 | ["changelogs/fragments/60623-openssl_certificate-deprecate-assertonly.yml", "docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/modules/crypto/openssl_certificate.py"] | openssl_certificate: deprecate assertonly provider | ##### SUMMARY
During some discussions over the last half year or so, we've discussed deprecating the `assertonly` provider and replacing it with `_info` modules + assert statements, or possibly more `_info` / other modules.
I want to use this issue to track what can already be replaced with `openssl_certificate_info` + `assert`, and what still needs features (or new modules).
I hope I listed everything that `assertonly` can check; please verify this :)
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
openssl_certificate
openssl_certificate_info
##### ASSERTONLY FEATURES
The task snippets assume that `result` is the result of registering the `openssl_certificate_info` output, if not said otherwise.
- [x] `signature_algorithms`
```.yaml
- assert:
that:
- "result.signature_algorithm == 'sha256WithRSAEncryption' or result.signature_algorithm == 'sha512WithRSAEncryption'"
```
- [x] `subject` and `subject_strict`
```.yaml
- assert:
that:
- "result.subject.commonName == 'ansible.com'"
- "result.subject | len == 1" # for subject_strict
```
- [x] `issuer` and `issuer_strict`
```.yaml
- assert:
that:
- "result.issuer.commonName == 'ansible.com'"
- "result.issuer | len == 1" # for issuer_strict
```
- [x] `has_expired`
```.yaml
- assert:
that:
- result.expired
```
- [x] `version`
```.yaml
- assert:
that:
- result.version == 3
```
- [x] `key_usage` and `key_usage_strict`
```.yaml
- assert:
that:
- "'Data Encipherment' in result.key_usage"
- "result.key_usage | len == 1" # for key_usage_strict
```
- [x] `extended_key_usage` and `extended_key_usage_strict`
```.yaml
- assert:
that:
- "'DVCS' in result.extended_key_usage"
- "result.extended_key_usage | len == 1" # for extended_key_usage_strict
```
- [x] `subject_alt_name` and `subject_alt_name_strict`
```.yaml
- assert:
that:
- "'dns:ansible.com' in result.subject_alt_name"
- "result.subject_alt_name | len == 1" # for subject_alt_name_strict
```
- [x] `not_before` and `not_after`
```.yaml
- assert:
that:
- "result.not_before == '20190413202428Z'"
- "result.not_after == '20190331202428Z'"
```
What's not working yet: relative timestamps don't work out of the box, since Ansible has no date / time filters. This can partially be done with `valid_at`, though.
- [x] `valid_at`, `invalid_at` and `valid_in`
```.yaml
- openssl_certificate_info:
path: ...
valid_at:
one_day_ten_hours: "+1d+10h"
register: result
- assert:
that:
- "result.valid_at.one_day_ten_hours" # for valid_at
- "not result.valid_at.one_day_ten_hours" # for invalid_at
```
- [x] `privatekey`: check whether public keys of private key and certificate are identical
```.yaml
- openssl_privatekey_info:
path: ...
register: result_privatekey
- assert:
that:
- result.public_key == result_privatekey.public_key
```
- [x] `csr`: check CSR signature (CSR signature must be valid, and CSR public key must equal certificate public key)
```.yaml
- openssl_csr_info:
path: ...
# module will fail if CSR signature is invalid
register: result_csr
- assert:
that:
- result.public_key == result_csr.public_key
```
- [x] `csr`: check CSR subject
```.yaml
- openssl_csr_info:
path: ...
register: result_csr
- assert:
that:
- result.subject == result_csr.subject
```
- [x] `csr`: check CSR extensions
```.yaml
- openssl_csr_info:
path: ...
register: result_csr
- assert:
that:
- result.extensions_by_oid == result_csr.extensions_by_oid
```
| https://github.com/ansible/ansible/issues/59972 | https://github.com/ansible/ansible/pull/60623 | 86366530e8e96312ed8cfd33d86a3c55a7ac9667 | ceff0029cbfb720abb5097013c7f84f242f3c08e | 2019-08-02T09:47:37Z | python | 2019-08-18T03:09:49Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,952 | ["changelogs/fragments/59952-vmware_guest-check_dvs.yml", "lib/ansible/modules/cloud/vmware/vmware_guest.py"] | VMware: vmware_guest throws AttributeError 'NoneType' object has no attribute 'uuid' | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Ansible throws an AttributeError exception. If I do not specify a network section, it will create the vm but complain about mismatched number of NICs
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vmware_guest
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
DEFAULT_PRIVATE_KEY_FILE(/etc/ansible/ansible.cfg) = /home/ansible/.ssh/id_rsa
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
PARAMIKO_HOST_KEY_AUTO_ADD(/etc/ansible/ansible.cfg) = True
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
vSphere 6.7.0
RHEL 7.6 kernel 3.10.0-957.21.3.el7.x86_64
pyvmomi 6.7.1.2018.12
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Run the following playbook
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
# tasks file for vmware-setup
- name: Create or update VM
vmware_guest:
hostname: "{{ vCenter.ip }}"
username: "{{ vCenter.username }}"
password: "{{ vCenter.password }}"
annotation: Provisioned and managed by Ansible
cluster: "{{ cluster_name }}"
datacenter: "{{ datacenter_name }}"
name: "{{ inventory_hostname }}"
folder: "{{ folder_name }}"
state: poweredon
template: "{{ template_name }}"
networks:
- name: "{{ network_name }}"
vlan: 400
ip: "{{ ansible_host }}"
netmask: "{{ network_netmask }}"
customization:
dns_servers: 10.22.148.45
domain: "{{ vCenter.domain }}"
hostname: "{{ inventory_hostname|lower }}"
validate_certs: no
delegate_to: localhost
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
New vm to be created and started
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
AttributeError thrown
<!--- Paste verbatim command output between quotes -->
```paste below
TASK [vmware-setup : Create or update VM] *********************************************************************************************************************************************************************
task path: /workspace/ansible-fusion/roles/vmware-setup/tasks/main.yml:3
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_guest.py
Pipelining is enabled.
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: ansible
<localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-swmzlhdjmcuoqfuzomgxoopqvglmlgub ; /usr/bin/python2'"'"' && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "<stdin>", line 114, in <module>
File "<stdin>", line 106, in _ansiballz_main
File "<stdin>", line 49, in invoke_module
File "/tmp/ansible_vmware_guest_payload_frCA55/__main__.py", line 2669, in <module>
File "/tmp/ansible_vmware_guest_payload_frCA55/__main__.py", line 2658, in main
File "/tmp/ansible_vmware_guest_payload_frCA55/__main__.py", line 2175, in deploy_vm
File "/tmp/ansible_vmware_guest_payload_frCA55/__main__.py", line 1355, in configure_network
AttributeError: 'NoneType' object has no attribute 'uuid'
fatal: [FUSION-jenkins-slave-1 -> localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 114, in <module>\n File \"<stdin>\", line 106, in _ansiballz_main\n File \"<stdin>\", line 49, in invoke_module\n File \"/tmp/ansible_vmware_guest_payload_frCA55/__main__.py\", line 2669, in <module>\n File \"/tmp/ansible_vmware_guest_payload_frCA55/__main__.py\", line 2658, in main\n File \"/tmp/ansible_vmware_guest_payload_frCA55/__main__.py\", line 2175, in deploy_vm\n File \"/tmp/ansible_vmware_guest_payload_frCA55/__main__.py\", line 1355, in configure_network\nAttributeError: 'NoneType' object has no attribute 'uuid'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
| https://github.com/ansible/ansible/issues/59952 | https://github.com/ansible/ansible/pull/60052 | b101fda4c6acce465619421fd6710c0514a8f2f7 | 2a1393e0e1a67e5d4ef86aa644bda0a908329cf6 | 2019-08-01T19:57:56Z | python | 2019-08-06T05:08:50Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,949 | ["changelogs/fragments/59949-undeprecate-first-found-skip.yml", "lib/ansible/plugins/lookup/first_found.py"] | Bump deprecated skip option for first_found | ##### SUMMARY
The `skip` option for `first_found` was indicated to be removed in 2.8.
The `version` under `deprecated` isn't meant to indicate the version the feature was deprecated in, but the version it will be removed in.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/plugins/lookup/first_found.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.8
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59949 | https://github.com/ansible/ansible/pull/60161 | c954c0727179064ce0ecf62336ec74173d36ec31 | 707e33793d683254a511cd1ec825df86a5121feb | 2019-08-01T18:08:03Z | python | 2019-08-08T18:55:11Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,934 | ["test/lib/ansible_test/_data/sanity/code-smell/action-plugin-docs.json", "test/lib/ansible_test/_data/sanity/code-smell/action-plugin-docs.py", "test/lib/ansible_test/_data/sanity/code-smell/empty-init.json", "test/lib/ansible_test/_data/sanity/code-smell/no-assert.json", "test/lib/ansible_test/_data/sanity/code-smell/no-main-display.json", "test/lib/ansible_test/_data/sanity/code-smell/use-argspec-type-path.json", "test/sanity/code-smell/required-and-default-attributes.json", "test/sanity/code-smell/required-and-default-attributes.py", "test/sanity/ignore.txt"] | Support collections layout in ansible-test sanity tests. | ##### SUMMARY
Many of the sanity tests used by ansible-test have paths in code and/or configuration that are specific to Ansible. These need to be updated to work with collections as well.
This is related to, but separate from https://github.com/ansible/ansible/issues/59561
##### ISSUE TYPE
Feature Idea
##### COMPONENT NAME
ansible-test
| https://github.com/ansible/ansible/issues/59934 | https://github.com/ansible/ansible/pull/61352 | b6290e1d156af608bd79118d209a64a051c55001 | cca4eb71e3cad7e72d4c6ae9c5e8d5948e04e38d | 2019-08-01T15:29:19Z | python | 2019-08-27T03:40:53Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,930 | ["changelogs/fragments/collections_cb_fix.yml", "lib/ansible/executor/task_queue_manager.py", "test/integration/targets/callback_default/runme.sh", "test/integration/targets/collections/runme.sh"] | collection callbacks won't load options | Also they bypass the 'single stdout' restriction
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
collections
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.8, 2.9
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
any
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
put callback into collection and whitelist
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
callback works
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
callback options are ignored
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59930 | https://github.com/ansible/ansible/pull/59932 | a33cc191bd66d800302edbd1400daaaa7915790e | 5ec53f9db853709c99e73d1b9c7b2ae81c681354 | 2019-08-01T15:14:08Z | python | 2020-10-15T19:31:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,918 | ["test/integration/targets/mongodb_replicaset/aliases", "test/integration/targets/mongodb_shard/aliases", "test/integration/targets/setup_mongodb/defaults/main.yml", "test/integration/targets/setup_mongodb/handlers/main.yml", "test/integration/targets/setup_mongodb/tasks/main.yml"] | mongodb_shard tests fail on Ubuntu 1604 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Ubuntu test cases are failing with following -
```
09:14 The full traceback is:
09:14 Traceback (most recent call last):
09:14 File "/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py", line 149, in <module>
09:14 _ansiballz_main()
09:14 File "/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py", line 141, in _ansiballz_main
09:14 invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
09:14 File "/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py", line 78, in invoke_module
09:14 imp.load_module('__main__', mod, module, MOD_DESC)
09:14 File "/tmp/ansible_apt_key_payload_LfAgyL/__main__.py", line 116, in <module>
09:14 File "/tmp/ansible_apt_key_payload_LfAgyL/ansible_apt_key_payload.zip/ansible/module_utils/urls.py", line 99, in <module>
09:14 File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
09:14 import OpenSSL.SSL
09:14 File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
09:14 from OpenSSL import rand, crypto, SSL
09:14 File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
09:14 SSL_ST_INIT = _lib.SSL_ST_INIT
09:14 AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
09:14
09:14 fatal: [testhost]: FAILED! => {
09:14 "changed": false,
09:14 "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py\", line 149, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py\", line 141, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1564657836.74-41084974317188/AnsiballZ_apt_key.py\", line 78, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_apt_key_payload_LfAgyL/__main__.py\", line 116, in <module>\n File \"/tmp/ansible_apt_key_payload_LfAgyL/ansible_apt_key_payload.zip/ansible/module_utils/urls.py\", line 99, in <module>\n File \"/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py\", line 46, in <module>\n import OpenSSL.SSL\n File \"/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py\", line 8, in <module>\n from OpenSSL import rand, crypto, SSL\n File \"/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py\", line 118, in <module>\n SSL_ST_INIT = _lib.SSL_ST_INIT\nAttributeError: 'module' object has no attribute 'SSL_ST_INIT'\n",
09:14 "module_stdout": "",
09:14 "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
09:14 "rc": 1
09:14 }
```
https://app.shippable.com/github/ansible/ansible/runs/135011/59/console
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
lib/ansible/modules/packaging/os/apt_key.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.9
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Ubuntu 16.04
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Above Shippable link
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Test should pass
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Test fails with stack trace
| https://github.com/ansible/ansible/issues/59918 | https://github.com/ansible/ansible/pull/60083 | d3da8e4a5b7c87ea6bb4f1345300ddb0a833a6b2 | 0892d48ebc94210d3e0526aa425f7fe7a64d1d2f | 2019-08-01T11:42:19Z | python | 2019-08-05T19:01:58Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,906 | ["changelogs/fragments/60599-get_certificate-cryptography.yml", "lib/ansible/module_utils/crypto.py", "lib/ansible/modules/crypto/get_certificate.py", "test/integration/targets/get_certificate/tasks/main.yml", "test/integration/targets/get_certificate/tests/validate.yml"] | get_certificate: add cryptography backend | ##### SUMMARY
The `get_certificate` module should support a cryptography backend, so PyOpenSSL can be deprecated / removed eventually.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
get_certificate
| https://github.com/ansible/ansible/issues/59906 | https://github.com/ansible/ansible/pull/60599 | 38435e1bd020f2951290abf2495710c375e90d0c | 601a4b8f471ceb27b9bec3ba15f82312059a9d8d | 2019-08-01T08:04:29Z | python | 2019-08-17T14:02:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,904 | ["changelogs/fragments/60387-openssl_publickey-cryptography-backend.yml", "lib/ansible/modules/crypto/openssl_publickey.py", "test/integration/targets/openssl_publickey/tasks/impl.yml", "test/integration/targets/openssl_publickey/tasks/main.yml", "test/integration/targets/openssl_publickey/tests/validate.yml"] | openssl_publickey: add cryptography backend | ##### SUMMARY
The `openssl_publickey` module should support a cryptography backend, so PyOpenSSL can be deprecated / removed eventually.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
openssl_publickey
| https://github.com/ansible/ansible/issues/59904 | https://github.com/ansible/ansible/pull/60387 | 13996aaff68d8cc77a536eb0ccaf5bdc644b3182 | 6a786d0d93edcf033d32347f8aca73c1f825bee5 | 2019-08-01T08:01:58Z | python | 2019-08-17T16:52:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,835 | ["test/sanity/pylint/config/collection"] | collections: sanity pylint unable to import ansible.module_utils.six.moves.urllib.* | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
pylint is failing on imports of ansible.module_utils.six.moves.urllib.*
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-test sanity pylint
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
devel
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
Running sanity test 'pylint' with Python 3.6
ERROR: Found 6 pylint issue(s) which need to be resolved:
ERROR: plugins/modules/vmware_cfg_backup.py:95:0: import-error Unable to import 'ansible.module_utils.six.moves.urllib.error'
ERROR: plugins/modules/vmware_guest_screenshot.py:142:0: import-error Unable to import 'ansible.module_utils.six.moves.urllib.parse'
ERROR: plugins/modules/vmware_host_firewall_manager.py:176:0: import-error Unable to import 'ansible_collections.jctanner.cloud_vmware.plugins.module_utils.compat'
ERROR: plugins/modules/vsphere_copy.py:112:0: import-error Unable to import 'ansible.module_utils.six.moves.urllib.parse'
ERROR: plugins/modules/vsphere_file.py:137:0: import-error Unable to import 'ansible.module_utils.six.moves.urllib.error'
ERROR: plugins/modules/vsphere_file.py:138:0: import-error Unable to import 'ansible.module_utils.six.moves.urllib.parse'
```
| https://github.com/ansible/ansible/issues/59835 | https://github.com/ansible/ansible/pull/59836 | 2198ecb1d2021bf949dd93fa0daf865a083b026f | ef6be41bf1fde2986662dc09451f6db46590b1e2 | 2019-07-31T01:40:57Z | python | 2019-07-31T02:19:54Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,829 | ["changelogs/fragments/65138-Windows_Multidomain_support.yml", "lib/ansible/modules/windows/win_domain_group_membership.ps1", "lib/ansible/modules/windows/win_domain_group_membership.py"] | win_domain_group_membership | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
win_domain_group_membership does not support cross domain membership.
This module needs extra parameters so that both group and members have server specified. At the moment the users and groups have to be in the same domain for the module to work! We have a multi-domain forest and need the ability to add users to groups from the other domains
$user = Get-ADUser fredb -Server fabricam.com
$group = Get-ADGroup "Box Permanent user group" -Server contoso.com
Add-ADGroupMember -Identity $Group -Members $User -Server contoso.com
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_domain_group_membership
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.1
config file = /etc/ansible/ansible.cfg
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Target Active Directory. Host Windows Server 2012 R2
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
-
hosts: all
ignore_errors: true
vars:
basic_user_group:
- "group1"
- "group2"
userId:
- "fredb"
tasks:
- name: Set fact basic_user_group
set_fact:
box_groups: "{{ basic_user_group }}"
when: user_profile == "basic"
- name: Add Username to GroupName
win_domain_group_membership:
name: "{{ basic_user_group }}"
domain_server: "contoso.com"
members:
- "{{ userId }}"
state: present
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The full traceback is:
Cannot find an object with identity: 'System.Object[]' under: 'DC=xxx,DC=xxxx,DC=net'.
At line:51 char:19
+ $members_before = Get-AdGroupMember -Identity $name @extra_args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (System.Object[]:ADGroup) [Get-ADGroupMember], ADIdentityNotFoundException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.GetADGroupMember
ScriptStackTrace:
at <ScriptBlock>, <No file>: line 51
Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException: Cannot find an object with identity: 'System.Object[]' under: 'DC=xxx,DC=xxxx,DC=net'.
at Microsoft.ActiveDirectory.Management.Commands.ADFactoryUtil.GetObjectFromIdentitySearcher(ADObjectSearcher searcher, ADEntity identityObj, String searchRoot, AttributeSetRequest attrs, CmdletSessionInfo cmdletSessionInfo, String[]& warningMessages)
at Microsoft.ActiveDirectory.Management.Commands.ADFactory`1.GetDirectoryObjectFromIdentity(T identityObj, String searchRoot, Boolean showDeleted)
at Microsoft.ActiveDirectory.Management.Commands.GetADGroupMember.GetADGroupMemberProcessCSRoutine()
at Microsoft.ActiveDirectory.Management.CmdletSubroutinePipeline.Invoke()
at Microsoft.ActiveDirectory.Management.Commands.ADCmdletBase`1.ProcessRecord()
fatal: [xxxxxxxxxxxxxxx.xxx.xxxxxxxxxxx.xxx]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: Cannot find an object with identity: 'System.Object[]' under: 'DC=xxx,DC=xxxx,DC=net'."
}
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59829 | https://github.com/ansible/ansible/pull/65138 | a60feeb3c1e5a6a6c96bee49bec98f0a5f5b7ca8 | cbc38d2e5a8b6ca0550a38f5a6eccad59b0b12b7 | 2019-07-30T23:28:40Z | python | 2020-02-17T22:43:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,822 | ["changelogs/fragments/62617-fix-redfish-enable-account-if-enabled-prop-missing.yaml", "lib/ansible/module_utils/redfish_utils.py"] | EnableUser command fails if no Enabled property is present | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
When using the `EnableUser` command, if the account being targeted does not have an `Enabled` property, the command may fail with a `400 Bad Request`.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
redfish_command.py
redfish_utils.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = $HOME/.ansible.cfg
configured module search path = ['$HOME/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = $HOME/Development/git/ansible/lib/ansible
executable location = $HOME/Development/git/ansible/bin/ansible
python version = 3.6.5 (default, Apr 25 2018, 14:26:36) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
[no output]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Applies to Redfish OOB controllers.
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Try to run the EnableUser command for an account that does not have the `Enabled` property.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: myhosts
connection: local
name: Enable User
gather_facts: False
vars:
- account_username: user8
tasks:
- name: Enable user
redfish_command:
category: Accounts
command: EnableUser
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
account_username: "{{ account_username }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Command succeeds with `changed=0`.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Command fails with:
<!--- Paste verbatim command output between quotes -->
```paste below
400 Bad Request
```
| https://github.com/ansible/ansible/issues/59822 | https://github.com/ansible/ansible/pull/62617 | c9a669e42c3fd90ec9d6d28c60a0f56f1bd302a8 | 14eedb2956a304d582da63e57b7663c61eb7a7a4 | 2019-07-30T20:39:22Z | python | 2019-10-29T13:16:49Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,806 | ["lib/ansible/modules/network/cnos/cnos_linkagg.py"] | CNOS modules showing as "supported" when it shouldn't | ##### COMPONENT NAME
cnos_linkagg
https://docs.ansible.com/ansible/devel/modules/network_maintained.html#network-supported
Specifically:
https://docs.ansible.com/ansible/latest/modules/cnos_linkagg_module.html#cnos-linkagg-module
should be modified to be community supported (not fully supported).
Thanks! | https://github.com/ansible/ansible/issues/59806 | https://github.com/ansible/ansible/pull/59878 | f1fd13c0efdfb901c82517699781ec36b47c8134 | eb15ee91dfdb28c77060b332bb5461e9c7015d4d | 2019-07-30T18:14:24Z | python | 2019-07-31T18:58:24Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,804 | ["changelogs/fragments/59927-fix-redfish-power-reset-type-mapping.yaml", "lib/ansible/module_utils/redfish_utils.py"] | Redfish: Power commands not mapping to allowable ResetType | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
For the Power* commands (redfish_utils.py:manage_system_power(), there is some logic to check the allowable ResetType values and try to map the requested command to one that is supported by the system. For example, map `GracefulRestart` to `ForceRestart` if `ForceRestart` is allowed but `GracefulRestart` is not.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
redfish_command.py
redfish_utils.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = $HOME/.ansible.cfg
configured module search path = ['$HOME/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = $HOME/Development/git/ansible/lib/ansible
executable location = $HOME/Development/git/ansible/bin/ansible
python version = 3.6.5 (default, Apr 25 2018, 14:26:36) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
[no output]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Applies to Redfish OOB controllers.
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Issue `PowerGracefulRestart` command for a system where `ForceRestart` is allowed but `GracefulRestart` is not.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: myhosts
connection: local
name: Manage System Power - Greaceful restart
gather_facts: False
tasks:
- name: Restart system power gracefully
redfish_command:
category: Systems
command: PowerGracefulRestart
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Command will successfully issue a computer system reset with `ResetType` of `ForceRestart`.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Command failed with:
<!--- Paste verbatim command output between quotes -->
```paste below
Unable to complete the operation because the value GracefulRestart entered for the property ResetType is not in the list of acceptable values
```
| https://github.com/ansible/ansible/issues/59804 | https://github.com/ansible/ansible/pull/59927 | 823c108facd19de183671ab17e2b189ebea5fa81 | 2a932ad7cfe27663d47cbd43de124fc756632361 | 2019-07-30T17:59:14Z | python | 2019-09-05T09:39:21Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,797 | ["changelogs/fragments/59877-fix-keyerror-in-redfish-getlogs.yaml", "lib/ansible/module_utils/redfish_utils.py"] | redfish_facts: GetLogs can raise KeyError | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
The GetLogs command can raise a KeyError if any of the properties it tries to read are not present. The properties being gathered are not required, so it should not be an error condition for them to be absent.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
redfish_facts.py
redfish_utils.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = $HOME/.ansible.cfg
configured module search path = ['$HOME/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = $HOME/Development/git/ansible/lib/ansible
executable location = $HOME/Development/git/ansible/bin/ansible
python version = 3.6.5 (default, Apr 25 2018, 14:26:36) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
[no output]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Applies to Redfish OOB controllers.
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Run the GetLogs commands against a Redfish service that does not include one or more of these properties in the `LogServices` resources:
- `Description`
- `Name`
- `Created`
- `Message`
- `Severity`
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: myhosts
connection: local
name: Get Manager Logs
gather_facts: False
vars:
datatype: Logs
tasks:
- name: Define output file
include_tasks: create_output_file.yml
- name: Get Manager Logs
redfish_facts:
category: Manager
command: GetLogs
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
register: result
- name: Copy results to output file
copy:
content: "{{ result | to_nice_json }}"
dest: "{{ template }}.json"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Playbook runs without error
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
redfish_utils.py, line 316, in get_logs KeyError: 'Created'
```
| https://github.com/ansible/ansible/issues/59797 | https://github.com/ansible/ansible/pull/59877 | 86b38a0ead535efa9a8d5340bc9c5de30fc8500f | 088d821f7514dd9276fb1feb48ce4592736ddf68 | 2019-07-30T16:20:29Z | python | 2019-09-04T01:44:07Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,796 | ["lib/ansible/modules/user.py"] | module user: no notes for parameter shell | ##### SUMMARY
The documentation of the module *user* / parameter *shell* states:
https://github.com/ansible/ansible/blob/8edad83ae029d7838a6d6347576d2ddbcce12ad0/lib/ansible/modules/system/user.py#L79
But there are no (shell specific) notes.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
user / docs
##### ANSIBLE VERSION
devel branch
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### ADDITIONAL INFORMATION
Either remove the sentence or provide some information in the notes section.
| https://github.com/ansible/ansible/issues/59796 | https://github.com/ansible/ansible/pull/72109 | 50c8c87fe2889612999f45d11d9f35a614518f1b | 865113aa29ad738903b04c8d558415120449cbe5 | 2019-07-30T16:19:28Z | python | 2020-10-06T19:31:37Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,795 | ["changelogs/fragments/psrp-copy.yaml", "lib/ansible/plugins/connection/psrp.py"] | put_file method in psrp connection plugin breaks JEA | #### SUMMARY
PSRP connection plugin does not respect the JEA configuration parameters when running put_file(). It instead creates a new shell which does not support ansible_psrp_configuration_name parameter. This results in access denied errors when using modules such as win_template which rely on put_file()
see: https://github.com/ansible/ansible/blob/6adf0c581ee005f514ea68e80c0f91e97e63dcea/lib/ansible/plugins/connection/psrp.py#L448
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
plugins/connection/psrp.py
##### ANSIBLE VERSION
```plain
ansible 2.8.1
config file = /root/ansible-windows/ansible.cfg
configured module search path = [u'/root/ansible-windows/shared/library', u'/root/ansible-windows/library']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.16 (default, Jun 11 2019, 02:02:48) [GCC 6.3.0 20170516]
```
##### CONFIGURATION
```plain
DEFAULT_CALLBACK_PLUGIN_PATH(/root/ansible-windows/ansible.cfg) = [u'/root/ansible-windows/plugins/callback']
DEFAULT_MANAGED_STR(/root/ansible-windows/ansible.cfg) = This file is managed by Ansible.%n
template: {file}
date: %Y-%m-%d %H:%M:%S
user: {uid}
host: {host}
DEFAULT_MODULE_PATH(/root/ansible-windows/ansible.cfg) = [u'/root/ansible-windows/shared/library', u'/root/ansible-windows/library']
DEFAULT_ROLES_PATH(/root/ansible-windows/ansible.cfg) = [u'/root/ansible-windows/shared/roles', u'/root/ansible-windows/roles']
DEFAULT_STDOUT_CALLBACK(/root/ansible-windows/ansible.cfg) = default
RETRY_FILES_ENABLED(/root/ansible-windows/ansible.cfg) = False
```
##### OS / ENVIRONMENT
Target OS: Windows Server 2016 Standard
##### STEPS TO REPRODUCE
This is a bit more involved as it requires a Windows machine with JEA configured but for illustration:
```yml
---
- hosts: all
gather_facts: no
vars:
ansible_user: "{{ jea_username }}"
ansible_password: "{{ jea_password }}"
ansible_connection: psrp
ansible_psrp_configuration_name: JEA-ConfMgmt
ansible_psrp_auth: ntlm
ansible_psrp_cert_validation: ignore
ansible_psrp_protocol: https
tasks:
- win_template:
src: myScript.ps1
dest: "C:/build/myScript.ps1"
```
##### EXPECTED RESULTS
win_template should be able to transfer files to a windows target machine when running with a JEA configuration
##### ACTUAL RESULTS
module fails with access denied.
```plain
The full traceback is:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 144, in run
res = self._execute()
File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 648, in _execute
result = self._handler.run(task_vars=variables)
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/template.py", line 189, in run
result.update(copy_action.run(task_vars=task_vars))
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 517, in run
module_return = self._copy_file(source_full, source_rel, content, content_tempfile, dest, task_vars, follow)
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 300, in _copy_file
remote_path = self._transfer_file(source_full, tmp_src)
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 424, in _transfer_file
self._connection.put_file(local_path, remote_path)
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/connection/psrp.py", line 452, in put_file
with WinRS(self.runspace.connection, codepage=65001) as shell:
File "/usr/local/lib/python2.7/site-packages/pypsrp/shell.py", line 98, in __enter__
self.open()
File "/usr/local/lib/python2.7/site-packages/pypsrp/shell.py", line 204, in open
option_set=options)
File "/usr/local/lib/python2.7/site-packages/pypsrp/wsman.py", line 259, in create
option_set, selector_set, timeout)
File "/usr/local/lib/python2.7/site-packages/pypsrp/wsman.py", line 382, in invoke
raise self._parse_wsman_fault(err.response_text)
WSManFaultError: Received a WSManFault message. (Code: 5, Machine: cevoktaagent6.c3.zone, Reason: Access is denied.)
```
| https://github.com/ansible/ansible/issues/59795 | https://github.com/ansible/ansible/pull/71409 | d099591964d6fedc174eb1d3fc1bbee8d2ba0f16 | 985ba187b22d4aac94c95013eccbd8ca3a9d490e | 2019-07-30T16:08:20Z | python | 2020-08-25T02:23:40Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,793 | ["lib/ansible/module_utils/redfish_utils.py", "lib/ansible/modules/remote_management/redfish/redfish_info.py"] | Add GetSoftwareInventory command | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Describe the new feature/improvement briefly below -->
During the 2019 APTS Plugfest, it was noted that the `GetFirmwareInventory` command was gathering the `FirmwareInventory` from the `UpdateService`, but not the `SoftwareInventory`.
There are two options to address this request:
1. Update the `GetFirmwareInventory` command to also gather the `SoftwareInventory`.
2. Add a new `GetSoftwareInventory` command.
I'll get input on these two options. [Per Tools Task Force call, agreed on option 2.]
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
redfish_facts.py
redfish_utils.py
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
Operators want to be able to get `SoftwareInventory` as well as `FirmwareInventory`. There is currently no way the gather the `SoftwareInventory` using the Ansible Redfish modules.
<!--- Paste example playbooks or commands between quotes below -->
**Option 1:**
```yaml
tasks:
- name: Get Firmware and Software Inventory
redfish_facts:
category: Update
command: GetFirmwareInventory
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
register: result
```
**Option 2:**
```yaml
tasks:
- name: Get Firmware Inventory
redfish_facts:
category: Update
command: GetFirmwareInventory
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
register: result
- name: Get Software Inventory
redfish_facts:
category: Update
command: GetSoftwareInventory
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
register: result
```
<!--- HINT: You can also paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/59793 | https://github.com/ansible/ansible/pull/62811 | 31f3a29613d47908939e863d953a55c9dc7bada1 | c9a669e42c3fd90ec9d6d28c60a0f56f1bd302a8 | 2019-07-30T16:02:33Z | python | 2019-10-29T13:15:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,787 | ["changelogs/fragments/59788-module_defaults-update-aws-group.yaml", "lib/ansible/config/module_defaults.yml"] | iam_password_policy ignores group/aws module defaults | ##### SUMMARY
I am using the [module defaults] feature to set common defaults among aws modules. However, iam_password_policy ignored these defaults.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/config/module_defaults.yml
##### ANSIBLE VERSION
```
ansible 2.8.1
config file = /home/mchappel/.ansible.cfg
configured module search path = [u'/home/mchappel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
```
DEFAULT_CALLBACK_WHITELIST(/home/mchappel/.ansible.cfg) = [u'timer', u'profile_tasks']
HOST_KEY_CHECKING(/home/mchappel/.ansible.cfg) = False
RETRY_FILES_ENABLED(/home/mchappel/.ansible.cfg) = False
```
##### OS / ENVIRONMENT
RHEL7
##### STEPS TO REPRODUCE
```
- hosts: all
gather_facts: no
serial: 1
tasks:
- name: 'run roles under assumed context'
module_defaults:
group/aws:
aws_access_key: '{{ current_account_sts_credentials.access_key }}'
aws_secret_key: '{{ current_account_sts_credentials.secret_key }}'
security_token: '{{ current_account_sts_credentials.session_token }}'
block:
- iam_password_policy:
state: present
allow_pw_change: yes
min_pw_length: 14
require_symbols: yes
require_numbers: yes
require_uppercase: yes
require_lowercase: yes
pw_reuse_prevent: 6
pw_expire: 90
```
##### EXPECTED RESULTS
iam_password_policy uses provided defaults
##### ACTUAL RESULTS
iam_password_policy ignores provided defaults | https://github.com/ansible/ansible/issues/59787 | https://github.com/ansible/ansible/pull/59788 | b09fbc3bf3f5d10c8c1d6605c22de53ec9a3b054 | c1e5758c4cb563cf727681ce798a682cc5f8acaf | 2019-07-30T14:54:06Z | python | 2019-07-31T15:53:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,775 | ["lib/ansible/config/base.yml"] | include description for COLLECTIONS_PATHS | https://docs.ansible.com/ansible/devel/reference_appendices/config.html#collections-paths
collections_paths need a description | https://github.com/ansible/ansible/issues/59775 | https://github.com/ansible/ansible/pull/59778 | c1e5758c4cb563cf727681ce798a682cc5f8acaf | 3eeaf2f9746fd6709bd565d88d0680019f261de3 | 2019-07-30T12:25:33Z | python | 2019-07-31T15:57:44Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,734 | ["lib/ansible/galaxy/login.py", "lib/ansible/module_utils/urls.py"] | ansible-galaxy login -c CERT error | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
`ansible-galaxy login --ignore-certs` is not respected. Further, the traceback for the error when a cert fails isn't clear.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-galaxy login https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/login.py#L91
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
ansible 2.9.0.dev0
config file = None
configured module search path = [u'/home/meyers/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible
executable location = /home/meyers/ansible/virtualenv/ansible-dev2/bin/ansible
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
```
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.04
DISTRIB_CODENAME=disco
DISTRIB_DESCRIPTION="Ubuntu 19.04"
```
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```
ansible-galaxy login -c
```
You can enter junk for the username/password and the error will trigger.
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
```
ERROR! Bad credentials
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
kjfldjansible-galaxy 2.9.0.dev0
config file = None
configured module search path = [u'/home/meyers/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible
executable location = /home/meyers/ansible/virtualenv/ansible-dev2/bin/ansible-galaxy
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
No config file found; using defaults
Opened /home/meyers/.ansible_galaxy
We need your GitHub login to identify you.
This information will not be sent to Galaxy, only to api.github.com.
The password will not be displayed.
Use --github-token if you do not want to enter your password.
GitHub Username: fldlfd
Password for dkjfldjfldlfd:
ca path None
Force False
ERROR! Unexpected Exception, this is probably a bug: Incorrect padding
the full traceback was:
Traceback (most recent call last):
File "/home/meyers/ansible/virtualenv/ansible-dev2/bin/ansible-galaxy", line 111, in <module>
exit_code = cli.run()
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 269, in run
context.CLIARGS['func']()
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 888, in execute_login
github_token = login.create_github_token()
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/galaxy/login.py", line 100, in create_github_token
self.remove_github_token()
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/galaxy/login.py", line 81, in remove_github_token
url_password=self.github_password, force_basic_auth=True,))
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/module_utils/urls.py", line 1382, in open_url
use_gssapi=use_gssapi, unix_socket=unix_socket, ca_path=ca_path)
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/module_utils/urls.py", line 1235, in open
tmp_ca_path, cadata, paths_checked = ssl_handler.get_ca_certs()
File "/home/meyers/ansible/virtualenv/ansible-dev2/local/lib/python2.7/site-packages/ansible/module_utils/urls.py", line 870, in get_ca_certs
to_native(b_cert, errors='surrogate_or_strict')
File "/usr/lib/python2.7/ssl.py", line 988, in PEM_cert_to_DER_cert
return base64.decodestring(d.encode('ASCII', 'strict'))
File "/usr/lib/python2.7/base64.py", line 328, in decodestring
return binascii.a2b_base64(s)
Error: Incorrect padding
```
| https://github.com/ansible/ansible/issues/59734 | https://github.com/ansible/ansible/pull/59959 | acbffce0796ff8e28ac5646ed8b3fd4e19232223 | 94f5e2d9ed964d32271e193445f40557bb5892b6 | 2019-07-29T17:08:45Z | python | 2019-08-06T19:59:34Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,695 | ["changelogs/fragments/limit_file_parsing.yml", "lib/ansible/inventory/manager.py", "test/integration/targets/inventory/runme.sh"] | ERROR! Unexpected Exception, this is probably a bug: string index out of range | ##### SUMMARY
Ansible run fails and I want to retry the failed hosts with the --limit @windows.retry command and it fails with "ERROR! Unexpected Exception, this is probably a bug: string index out of range"
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
limit
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
$ ansible --version
ansible 2.9.0.dev0
config file = /Users/tanner/projects/ansible.git/playbooks.git/celadonsystems.com/ansible.cfg
configured module search path = [u'/Users/tanner/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/tanner/projects/ansible.git/ansible/lib/ansible
executable location = /Users/tanner/projects/ansible.git/ansible/bin/ansible
python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
$ ansible-config dump --only-changed
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Management host macOS 10.14.6
Managed hosts various releases of Windows
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
Run ansible and have a failure so you get the retry file
```yaml
$ ansible-playbook -i testing ../windows.yml --limit @../windows.retry
```
##### EXPECTED RESULTS
Ansible will run for just the failed hosts in the retry file
##### ACTUAL RESULTS
ERROR! Unexpected Exception, this is probably a bug: string index out of range
<!--- Paste verbatim command output between quotes -->
```paste below
ERROR! Unexpected Exception, this is probably a bug: string index out of range
```
| https://github.com/ansible/ansible/issues/59695 | https://github.com/ansible/ansible/pull/59776 | 8a6c7a97ccedf99d5bf4c39e0118ef61501d15ee | 2ebc4e1e7eda61f133d9425872e2a858bae92ec4 | 2019-07-28T16:34:25Z | python | 2019-07-30T17:02:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,691 | ["changelogs/fragments/59715-docker_container-ipv6-port-bind.yml", "lib/ansible/modules/cloud/docker/docker_container.py", "test/integration/targets/docker_container/tasks/tests/options.yml"] | docker_container: address already in use with ipv4+ipv6 ip-bound port mappings | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
A docker container cannot be started with ip-bound port mappings when using both, ipv4 and ipv6 addresses:
With #46596, i expected
docker_container:
name: "test123"
image: "ubuntu:latest"
tty: yes
interactive: yes
networks:
- name: bridge
purge_networks: yes
pull: yes
ports:
- "127.0.0.1:53:53/tcp"
- "127.0.0.1:53:53/udp"
- "[::1]:53:53/tcp"
- "[::1]:53:53/udp"
to behave like
docker run --rm -ti -p "127.0.0.1:53:53/tcp" -p "127.0.0.1:53:53/udp" -p "[::1]:53:53/tcp" -p "[::1]:53:53/udp" ubuntu:latest
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3e7204cabfeb ubuntu:latest "/bin/bash" 2 seconds ago Up 1 second 127.0.0.1:53->53/tcp, 127.0.0.1:53->53/udp, ::1:53->53/tcp, ::1:53->53/udp awesome_banach
However, the deployment fails with
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error starting container a26b2b9b2497195af25770878fd2c084e984e3d2c70bef602261cf76aad1a0bb: 500 Server Error: Internal Server Error (\"driver failed programming external connectivity on endpoint test123 (c41303e4e84c59d838166594918137135dfbd22e0bce311e3302f88135874d87): Error starting userland proxy: listen tcp 0.0.0.0:53: bind: address already in use\")"}
Note that is says `0.0.0.0:53`, which may be related to #40258. Removing the two IPv6 mappings works as expected.
From what i can see, the mapping is correctly parsed in
`ansible.modules.cloud.docker.docker_container.TaskParameters._parse_publish_ports` - i suspect the error is in the passing to the docker-py module.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
docker_container
##### ANSIBLE VERSION
```
ansible 2.8.3
config file = /home/johann/.ansible.cfg
configured module search path = ['/home/johann/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
```
##### CONFIGURATION
```
ANSIBLE_SSH_ARGS(/home/johann/.ansible.cfg) = -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes -o ControlPath="/home/johann/.ansible/ansible-ssh-%h-%p-%r"
DEFAULT_HOST_LIST(/home/johann/.ansible.cfg) = ['/home/johann/dev/repos/ercpe-ansible/hosts']
DEFAULT_TRANSPORT(/home/johann/.ansible.cfg) = ssh
DEFAULT_VAULT_PASSWORD_FILE(/home/johann/.ansible.cfg) = /home/johann/bin/ansible-vault-pass
```
##### OS / ENVIRONMENT
Tested on Ubuntu 19.04 (disco)
##### STEPS TO REPRODUCE
See Summary
##### EXPECTED RESULTS
See Summary
##### ACTUAL RESULTS
See Summary
| https://github.com/ansible/ansible/issues/59691 | https://github.com/ansible/ansible/pull/59715 | f94772f807fed7fd6329faae25aa600dd9f030cf | a7573102bcbc7e88b8bf6de639be2696f1a5ad43 | 2019-07-28T14:29:47Z | python | 2019-08-02T15:10:39Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,667 | ["changelogs/fragments/win_dsc-datetime.yaml", "lib/ansible/modules/windows/win_dsc.ps1", "lib/ansible/modules/windows/win_dsc.py"] | win_dsc / ScheduledTask start time not working in 2.8 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Calling win_dsc with the ScheduledTask resource from https://github.com/PowerShell/ComputerManagementDsc/wiki/ScheduledTask
worked in 2.7 but fails in 2.8 - Tested in 2.8.2 and 2.8.3.
Possibly related to the exec_wrapper. The AnsiballZ_win_dsc.ps1 LOOKS correct...
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
win_dsc
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = None
configured module search path = [u'/home/mundym/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
CentOS 7 for Ansible, target OS is Windows Server 2016
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Try to create a scheduled task with minimal options but definitely include start time
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- set_fact:
scheduled_tasks:
- task_name: "Task"
task_path: "{{task_path}}"
action_executable: "powershell.exe"
action_arguments: "scriptname"
action_workingpath: "dir"
schedule_type: Daily
days_interval: 1
start_time: "06:00PM"
executeas_credential_username: "User"
executeas_credential_password: "Password"
start_when_available: False
execution_timelimit: "72:00:00"
logon_type: Password
state: Present
- win_psmodule:
name: ComputerManagementDsc
- win_dsc:
resource_name: ScheduledTask
TaskName : "{{ item.task_name }}"
TaskPath : "{{ task_path }}"
Description : "{{ item.description | default(omit) }}"
ActionExecutable : "{{ item.action_executable }}"
ActionArguments : "{{ item.action_arguments | default(omit) }}"
ActionWorkingPath : "{{ item.action_workingpath | default(omit) }}"
ScheduleType : "{{ item.schedule_type}}"
DaysInterval : "{{ item.days_interval | default(omit) }}"
WeeksInterval : "{{ item.weeks_interval | default(omit) }}"
RepeatInterval : "{{ item.repeat_interval | default(omit) }}"
StartTime : "{{ item.start_time | default(omit) }}"
DaysOfWeek : "{{ item.days_of_week | default(omit) }}"
ExecuteAsCredential_username: "{{ item.executeas_credential_username | default(omit) }}"
ExecuteAsCredential_password: "{{ item.executeas_credential_password | default(omit) }}"
LogonType : "{{ item.logon_type | default(omit) }}"
RandomDelay : "{{ item.random_delay | default(omit) }}"
RepetitionDuration : "{{ item.repetition_duration | default('Indefinitely') }}"
DisallowDemandStart : "{{ item.disallow_demand_start | default(False) }}"
DisallowHardTerminate : "{{ item.disallow_hard_terminate | default(False) }}"
Compatibility : "{{ item.compatibility | default('Vista') }}"
Hidden : "{{ item.hidden | default(False) }}"
RunOnlyIfIdle : "{{ item.run_only_if_idle | default(omit) }}"
IdleDuration : "{{ item.idle_duration | default(omit) }}"
IdleWaitTimeout : "{{ item.idle_wait_timeout | default(omit) }}"
RestartOnIdle : "{{ item.restart_on_idle | default(omit) }}"
DontStopOnIdleEnd : "{{ item.dont_stop_on_idle_end | default(omit) }}"
DisallowStartOnRemoteAppSession: "{{ item.disallow_start_on_remote_app_session | default(False) }}"
ExecutionTimeLimit : "{{ item.execution_time_limit | default(omit) }}"
RestartCount : "{{ item.restart_count | default(omit) }}"
RestartInterval : "{{ item.restart_interval | default(omit) }}"
multipleInstances : "{{ item.multiple_instances | default('IgnoreNew') }}"
Priority : "{{ item.priority| default('7') }}"
RunLevel : "{{ item.runlevel | default('Limited') }}"
Enable : true
Ensure : Present
loop: "{{scheduled_tasks}}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Task will be created
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
"msg": "argument for StartTime is of type System.String and we were unable to convert to delegate: Exception calling \"ParseExact\" with \"4\" argument(s): \"String was not recognized as a valid DateTime.\""
```
| https://github.com/ansible/ansible/issues/59667 | https://github.com/ansible/ansible/pull/59703 | 196347ff326e0fdd1d0c72adbc4aff42362b15aa | 04ec47bdf16112435a1278149146bdb81de2b979 | 2019-07-26T23:48:54Z | python | 2019-07-30T22:45:37Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,650 | ["changelogs/fragments/59650-correctly-handler-delegate_to_hostname-loops.yaml", "lib/ansible/vars/manager.py"] | Issue with delegate_to and loops | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Filing on behalf of Netapp
I started running some collection tests on the latest branch and found what I believe to be a bug in the devel branch. I also wrote a program to isolate the commit where the issue started and the failure with the commit https://github.com/ansible/ansible/commit/b7868529ee595b07b0cee5729dd103ef8f021600. I have also attached inventory outputs and execution logs. Let me know if there is anything else you need.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
delegate_to
Delegation, Rolling Updates, and Local Actions
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
devel branch
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Netapp e series
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
Recreate playbook:
- hosts: localhost
gather_facts: no
tasks:
- name: Gather facts about remote hosts
command: “hostname”
delegate_to: “{{ item }}”
delegate_facts: false # Makes no difference true/false
loop:
- beegfs_metadata1 # couple of Ubuntu 18.04 lts hosts as defined in the inventory
- beegfs_storage1
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
beegfs_metadata1 will succeed but will fail on beegfs_storage1; however if the order is reversed then beegfs_storage1 will succeed and beegfs_metadata1 will fail.
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-playbook 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/swartzn/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/swartzn/projects/ansible/ansible/lib/ansible
executable location = /home/swartzn/projects/ansible/ansible/bin/ansible-playbook
python version = 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/swartzn/projects/ansible/inventory.yml as it did not pass its verify_file() method
script declined parsing /home/swartzn/projects/ansible/inventory.yml as it did not pass its verify_file() method
Parsed /home/swartzn/projects/ansible/inventory.yml inventory source with yaml plugin
Loading callback plugin default of type stdout, v2.0 from /home/swartzn/projects/ansible/ansible/lib/ansible/plugins/callback/default.py
PLAYBOOK: playbook.yml **************************************************************************************************************************************************************************************************************************************************
Positional arguments: playbook.yml
verbosity: 5
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/home/swartzn/projects/ansible/inventory.yml',)
forks: 5
1 plays in playbook.yml
PLAY [localhost] ********************************************************************************************************************************************************************************************************************************************************
META: ran handlers
TASK [Gathers facts about remote hosts] *********************************************************************************************************************************************************************************************************************************
task path: /home/swartzn/projects/ansible/playbook.yml:4
<10.113.1.206> ESTABLISH SSH CONNECTION FOR USER: beegfs
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set ssh_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 10.113.1.206 '/bin/sh -c '"'"'echo ~beegfs && sleep 0'"'"''
<10.113.1.206> (0, b'/home/beegfs\n', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.113.1.206> ESTABLISH SSH CONNECTION FOR USER: beegfs
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set ssh_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 10.113.1.206 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474 `" && echo ansible-tmp-1564077394.3568225-151955846213474="` echo /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474 `" ) && sleep 0'"'"''
<10.113.1.206> (0, b'ansible-tmp-1564077394.3568225-151955846213474=/home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474\n', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/__init__.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/collections.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/basic.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/_text.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/six/__init__.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/_collections_compat.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/file.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/parsing/__init__.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/process.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/parameters.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/validation.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/_utils.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/text/__init__.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/text/converters.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/pycompat24.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/parsing/convert_bool.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/sys_info.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/text/formatters.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/common/_json_compat.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/distro/__init__.py
Using module_utils file /home/swartzn/projects/ansible/ansible/lib/ansible/module_utils/distro/_distro.py
Using module file /home/swartzn/projects/ansible/ansible/lib/ansible/modules/commands/command.py
<10.113.1.206> PUT /home/swartzn/.ansible/tmp/ansible-local-283415wu2yknz/tmpmzxnh3w3 TO /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/AnsiballZ_command.py
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set sftp_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 '[10.113.1.206]'
<10.113.1.206> (0, b'sftp> put /home/swartzn/.ansible/tmp/ansible-local-283415wu2yknz/tmpmzxnh3w3 /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/AnsiballZ_command.py\n', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/beegfs size 0\r\ndebug3: Looking up /home/swartzn/.ansible/tmp/ansible-local-283415wu2yknz/tmpmzxnh3w3\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/AnsiballZ_command.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:8691\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 8691 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.113.1.206> ESTABLISH SSH CONNECTION FOR USER: beegfs
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set ssh_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 10.113.1.206 '/bin/sh -c '"'"'chmod u+x /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/ /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/AnsiballZ_command.py && sleep 0'"'"''
<10.113.1.206> (0, b'', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.113.1.206> ESTABLISH SSH CONNECTION FOR USER: beegfs
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set ssh_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 -tt 10.113.1.206 '/bin/sh -c '"'"'/usr/bin/python3 /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/AnsiballZ_command.py && sleep 0'"'"''
<10.113.1.206> (0, b'\r\n{"cmd": ["hostname"], "stdout": "beegfs-metadata", "stderr": "", "rc": 0, "start": "2019-07-25 17:55:50.009195", "end": "2019-07-25 17:55:50.012072", "delta": "0:00:00.002877", "changed": true, "invocation": {"module_args": {"_raw_params": "hostname", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 10.113.1.206 closed.\r\n')
<10.113.1.206> ESTABLISH SSH CONNECTION FOR USER: beegfs
<10.113.1.206> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.113.1.206> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.113.1.206> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="beegfs")
<10.113.1.206> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.113.1.206> SSH: PlayContext set ssh_common_args: ()
<10.113.1.206> SSH: PlayContext set ssh_extra_args: ()
<10.113.1.206> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8)
<10.113.1.206> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="beegfs"' -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/3cc9ebacc8 10.113.1.206 '/bin/sh -c '"'"'rm -f -r /home/beegfs/.ansible/tmp/ansible-tmp-1564077394.3568225-151955846213474/ > /dev/null 2>&1 && sleep 0'"'"''
<10.113.1.206> (0, b'', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 28331\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
changed: [localhost -> 10.113.1.206] => (item=beegfs_metadata1) => {
"ansible_loop_var": "item",
"changed": true,
"cmd": [
"hostname"
],
"delta": "0:00:00.002877",
"end": "2019-07-25 17:55:50.012072",
"invocation": {
"module_args": {
"_raw_params": "hostname",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"item": "beegfs_metadata1",
"rc": 0,
"start": "2019-07-25 17:55:50.009195",
"stderr": "",
"stderr_lines": [],
"stdout": "beegfs-metadata",
"stdout_lines": [
"beegfs-metadata"
]
}
<beegfs_storage1> ESTABLISH SSH CONNECTION FOR USER: None
<beegfs_storage1> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<beegfs_storage1> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<beegfs_storage1> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<beegfs_storage1> SSH: PlayContext set ssh_common_args: ()
<beegfs_storage1> SSH: PlayContext set ssh_extra_args: ()
<beegfs_storage1> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/swartzn/.ansible/cp/a9c837a4c1)
<beegfs_storage1> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/swartzn/.ansible/cp/a9c837a4c1 beegfs_storage1 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<beegfs_storage1> (255, b'', b'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/home/swartzn/.ansible/cp/a9c837a4c1" does not exist\r\ndebug2: resolving "beegfs_storage1" port 22\r\nssh: Could not resolve hostname beegfs_storage1: Name or service not known\r\n')
failed: [localhost] (item=beegfs_storage1) => {
"ansible_loop_var": "item",
"item": "beegfs_storage1",
"msg": "Failed to connect to the host via ssh: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/home/swartzn/.ansible/cp/a9c837a4c1\" does not exist\r\ndebug2: resolving \"beegfs_storage1\" port 22\r\nssh: Could not resolve hostname beegfs_storage1: Name or service not known",
"unreachable": true
}
fatal: [localhost]: UNREACHABLE! => {
"changed": true,
"msg": "All items completed",
"results": [
{
"ansible_loop_var": "item",
"changed": true,
"cmd": [
"hostname"
],
"delta": "0:00:00.002877",
"end": "2019-07-25 17:55:50.012072",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "hostname",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"item": "beegfs_metadata1",
"rc": 0,
"start": "2019-07-25 17:55:50.009195",
"stderr": "",
"stderr_lines": [],
"stdout": "beegfs-metadata",
"stdout_lines": [
"beegfs-metadata"
]
},
{
"ansible_loop_var": "item",
"item": "beegfs_storage1",
"msg": "Failed to connect to the host via ssh: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket \"/home/swartzn/.ansible/cp/a9c837a4c1\" does not exist\r\ndebug2: resolving \"beegfs_storage1\" port 22\r\nssh: Could not resolve hostname beegfs_storage1: Name or service not known",
"unreachable": true
}
]
}
PLAY RECAP **************************************************************************************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
[beegfs_metadata1.txt](https://github.com/ansible/ansible/files/3436503/beegfs_metadata1.txt)
[beegfs_storage1.txt](https://github.com/ansible/ansible/files/3436505/beegfs_storage1.txt)
```
| https://github.com/ansible/ansible/issues/59650 | https://github.com/ansible/ansible/pull/59659 | 127bd67f6e927321dafbd11a492ca8756cf8d89f | fd899956b427be38f425a805f0ab653af7fd3300 | 2019-07-26T15:55:29Z | python | 2019-07-30T07:46:29Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,617 | ["changelogs/fragments/39295-grafana_dashboard.yml", "docs/docsite/rst/dev_guide/developing_modules_best_practices.rst", "docs/docsite/rst/dev_guide/testing_validate-modules.rst", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/monitoring/bigpanda.py", "lib/ansible/modules/monitoring/datadog/datadog_monitor.py", "lib/ansible/modules/monitoring/grafana/grafana_dashboard.py", "test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py", "test/sanity/ignore.txt"] | grafana_dashboard: add dashboard report "send() got multiple values for keyword argument 'MESSAGE'" | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Add dashboard report "send() got multiple values for keyword argument 'MESSAGE'"
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
grafana_dashboard
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /home/namnh/workspace/ansible-setup/ansible.cfg
configured module search path = ['/home/namnh/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/namnh/.venvs/ansible/lib/python3.6/site-packages/ansible
executable location = /home/namnh/.venvs/ansible/bin/ansible
python version = 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_HOST_LIST(/home/namnh/workspace/ansible-setup/ansible.cfg) = ['/home/namnh/workspace/ansible-setup/inventory']
DEFAULT_STDOUT_CALLBACK(/home/namnh/workspace/ansible-setup/ansible.cfg) = yaml
INTERPRETER_PYTHON(/home/namnh/workspace/ansible-setup/ansible.cfg) = /usr/bin/python3
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- hosts: localhost
tasks:
- name: Import Grafana telegraf dashboard
ignore_errors: yes
become: false
grafana_dashboard:
grafana_url: "{{ grafana_url }}"
grafana_user: "{{ grafana_admin_user }}"
grafana_password: "{{ grafana_admin_password }}"
message: telegraf
overwrite: yes
state: present
path: "{{ playbook_dir }}/configs/telegraf-system.json"
delegate_to: localhost
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
New datasource is added
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
Traceback (most recent call last):
File "/home/namnh/.ansible/tmp/ansible-tmp-1564113599.2774515-158744002373584/AnsiballZ_grafana_dashboard.py", line 114, in <module>
_ansiballz_main()
File "/home/namnh/.ansible/tmp/ansible-tmp-1564113599.2774515-158744002373584/AnsiballZ_grafana_dashboard.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/namnh/.ansible/tmp/ansible-tmp-1564113599.2774515-158744002373584/AnsiballZ_grafana_dashboard.py", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/usr/lib/python3.6/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.6/imp.py", line 170, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 618, in _exec
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_grafana_dashboard_payload_apewcyne/__main__.py", line 451, in <module>
File "/tmp/ansible_grafana_dashboard_payload_apewcyne/__main__.py", line 408, in main
File "/tmp/ansible_grafana_dashboard_payload_apewcyne/ansible_grafana_dashboard_payload.zip/ansible/module_utils/basic.py", line 691, in __init__
File "/tmp/ansible_grafana_dashboard_payload_apewcyne/ansible_grafana_dashboard_payload.zip/ansible/module_utils/basic.py", line 1946, in _log_invocation
File "/tmp/ansible_grafana_dashboard_payload_apewcyne/ansible_grafana_dashboard_payload.zip/ansible/module_utils/basic.py", line 1904, in log
TypeError: send() got multiple values for keyword argument 'MESSAGE'
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
```
| https://github.com/ansible/ansible/issues/59617 | https://github.com/ansible/ansible/pull/60051 | 00bed0eb1c2ed22a7b56078b9e7911756182ac92 | b6753b46a987a319ff062a8adcdcd4e0000353ed | 2019-07-26T04:36:45Z | python | 2020-02-18T12:00:16Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,613 | ["lib/ansible/modules/source_control/subversion.py"] | [subversion] always shows as changed when using --check and revision | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
A `subversion` task will always report as changed if the `revision` option is specified when using `ansible-playbook --check`. It will report that the "after" revision is the remote URL's HEAD rather than the revision that was specified in the task options. This is misleading for two reasons:
1. The real "after" revision will not be what is reported by `--check` when the task is actually run.
2. When running without `--check`, ansible correctly reports that the task is "ok" if no change is needed.
I believe it should be possible, even in `--check` mode, to detect that the revision of the svn repo on the host is the revision that is requested, and report that the task is "ok" instead of "changed".
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
subversion
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /home/dhemberg/sgp-ansible/ansible.cfg
configured module search path = ['/home/dhemberg/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/dhemberg/.local/lib/python3.7/site-packages/ansible
executable location = /home/dhemberg/.local/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_HOST_LIST(/home/dhemberg/sgp-ansible/ansible.cfg) = ['/home/dhemberg/sgp-ansible/hosts']
DEFAULT_LOG_PATH(/home/dhemberg/sgp-ansible/ansible.cfg) = /home/dhemberg/sgp-ansible/ansible.log
DISPLAY_SKIPPED_HOSTS(/home/dhemberg/sgp-ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Ubuntu 19.04
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Create a test.yml file with the `subversion` task as below. Set the revision to be some past revision of the repository. Deploy so that the repo is up-to-date. Then deploy again with the `--check` option, and see that it reports that the task would be changed.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Check out svn repo
subversion:
repo: svn+ssh://path/to/remote/repo
revision: 123
dest: /path/to/local/repo
```
Run the following two commands:
```
ansible-playbook test.yml
ansible-playbook test.yml --check
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
I expect the task to report as "ok" because the revision of the repo on the host is at the requested revision.
```
TASK [Check out svn repo] **************************************************************************
ok: [hostname] => {"after": "Revision: 123", "before": "Revision: 123", "changed": false}
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
I see that it reports the "after" revision as the most recent revision of the repository, rather than the revision that has been explicitly requested in the `subversion` task options.
<!--- Paste verbatim command output between quotes -->
```paste below
TASK [Check out svn repo] **************************************************************************
changed: [hostname] => {"after": "Revision: 94432", "before": "Revision: 123", "changed": true}
```
| https://github.com/ansible/ansible/issues/59613 | https://github.com/ansible/ansible/pull/60041 | 5d7d4a93c850a8b40d44fa380327b3c4b1aed7e0 | 7c92c4214c034b625107ece2c9e42230ca5204db | 2019-07-25T23:25:06Z | python | 2019-09-03T19:08:08Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,612 | ["docs/docsite/rst/dev_guide/testing/sanity/pep8.rst", "docs/docsite/rst/dev_guide/testing/sanity/validate-modules.rst", "docs/docsite/rst/dev_guide/testing_pep8.rst", "docs/docsite/rst/dev_guide/testing_validate-modules.rst"] | de-duplicate and integrate the sanity-testing pages | <!--- Verify first that your improvement is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
We have a page for each sanity test in https://github.com/ansible/ansible/tree/devel/docs/docsite/rst/dev_guide/testing/sanity. At least two of these are merely links to pages in the `dev_guide` directory:
- [x] [PEP8](https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/pep8.html)
- [x] [validate-modules](https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/validate-modules.html)
Both were converted from `README.md` files in https://github.com/ansible/ansible/pull/24094/files.
The bot (and in future, possibly the output of `ansible-test`) directs users to the files in `testing/sanity`. Consolidate the content, keep the files in `docs/docsite/rst/dev_guide/testing/sanity`, and remove the duplicates in `docs/docsite/rst/dev_guide`.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
docs.ansible.com
testing
##### ANSIBLE VERSION
2.9
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A | https://github.com/ansible/ansible/issues/59612 | https://github.com/ansible/ansible/pull/79380 | d925ece764b4943d92897abd01ced7209cdf133e | a954918b6095adf52c663bdcc340c55762189393 | 2019-07-25T23:19:47Z | python | 2022-11-17T21:20:20Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,606 | ["lib/ansible/executor/task_executor.py", "lib/ansible/template/__init__.py", "lib/ansible/utils/unsafe_proxy.py", "test/units/utils/test_unsafe_proxy.py"] | Remove UnsafeProxy | ##### SUMMARY
There is no real reason that `UnsafeProxy` needs to exist.
We need to add unsafe bytes support, and by doing so within `UnsafeProxy` over complicates matters.
`wrap_var` should effectively take over the work that `UnsafeProxy` is doing, and then just rely on `wrap_var` directly using the proper `AnsibleUnsafe*` classes. Or callers can directly use `AnsibleUnsafe*` themselves when `wrap_var` isn't necessary.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
lib/ansible/utils/unsafe_proxy.py
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can also paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/59606 | https://github.com/ansible/ansible/pull/59711 | e80f8048ee027ab0c7c8b5912fb6c69c44fb877a | 164881d871964aa64e0f911d03ae270acbad253c | 2019-07-25T20:15:19Z | python | 2019-08-07T15:39:01Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,604 | ["docs/docsite/rst/community/reporting_bugs_and_features.rst"] | [1] Update collections dev guide for testing | ##### SUMMARY
Now that we have support for collections in ansible-test, the collections dev guide needs to be updated to reflect how testing works.
##### ISSUE TYPE
Feature Idea
##### COMPONENT NAME
docs
| https://github.com/ansible/ansible/issues/59604 | https://github.com/ansible/ansible/pull/77518 | 727387ad7619fd9108ad250fd5d4ac75608dfe6d | fa7c5d9b104fdf82eecd1d3089c6d42256b789c7 | 2019-07-25T17:21:59Z | python | 2022-04-13T13:47:59Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,590 | ["changelogs/fragments/75101-ansible-vault-encrypt_string-output-file.yml", "lib/ansible/cli/vault.py", "test/integration/targets/ansible-vault/runme.sh"] | Add support for ansible-vault encrypt_string to write results to file more easily | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Describe the new feature/improvement briefly below -->
Whenever I use `ansible-vault encrypt_string`, I want to take the result and add it to a variable file, however I have to manually select the text/copy/open file for editing/paste/save the change. This process is painful especially when you have multiple strings to encrypt as it doesn't work with the Unix way of things thus being very manual. I thought `ansible-vault encrypt_string --output` might be something to help here, but the help documentation is confusing as it appears this is only used with `encrypt` and `decrypt` _(commands)_.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
lib/ansible/cli/vault.py
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
The only way I can see this working _without coming up with custom file descriptors or repurposing stderr for encrypted output so redirection will work_ is to add a new option that could append the resulting string to a file.
```shell
ansible-vault encrypt_string --encrypt-vault-id default --stdin-name --append vars_file.yml
Reading plaintext input from stdin. (ctrl-d to end input)
hunter22
Encryption successful
``` | https://github.com/ansible/ansible/issues/59590 | https://github.com/ansible/ansible/pull/76856 | 18ed2c64e57816f0a8ecd2fbda3e5538b45da5ea | f501b579e51c05565d852feb676fa38cddf3f2ed | 2019-07-25T13:30:25Z | python | 2022-01-28T08:34:59Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,584 | ["changelogs/fragments/galaxy-argspec-verbosity.yaml", "lib/ansible/cli/__init__.py", "lib/ansible/cli/galaxy.py", "lib/ansible/galaxy/collection.py", "test/units/cli/test_galaxy.py", "test/units/cli/test_vault.py"] | In CLI commands, validate collection fully qualified name | ##### SUMMARY
As a nicety to the user, `ansible-galaxy collection` should check certain properties of the `collection_name` argument, and provide helpful suggestions about expected format.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
lib/ansible/galaxy/collection.py
##### ADDITIONAL INFORMATION
When getting this message, it's not clear to the user what they should do differently:
```yaml
$ ansible-galaxy collection install chrismeyersfsu_tower_modules -p alan -vvv
ansible-galaxy 2.9.0.dev0
config file = None
configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible
executable location = /Users/alancoding/.virtualenvs/ansible3/bin/ansible-galaxy
python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]
No config file found; using defaults
Opened /Users/alancoding/.ansible_galaxy
[WARNING]: The specified collections path '/Users/alancoding/Documents/repos/jlaska-ansible-playbooks/alan' is not part of the configured Ansible collections paths
'/Users/alancoding/.ansible/collections:/usr/share/ansible/collections'. The installed collection won't be picked up in an Ansible run.
Found installed collection chrismeyersfsu.tower_modules:0.0.1 at '/Users/alancoding/Documents/repos/jlaska-ansible-playbooks/alan/ansible_collections/chrismeyersfsu/tower_modules'
Processing requirement collection 'chrismeyersfsu_tower_modules'
ERROR! Unexpected Exception, this is probably a bug: not enough values to unpack (expected 2, got 1)
the full traceback was:
Traceback (most recent call last):
File "/Users/alancoding/Documents/repos/ansible/bin/ansible-galaxy", line 111, in <module>
exit_code = cli.run()
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 269, in run
context.CLIARGS['func']()
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/cli/galaxy.py", line 617, in execute_install
no_deps, force, force_deps)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 450, in install_collections
force, force_deps, no_deps)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 831, in _build_dependency_map
validate_certs, (force or force_deps))
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 898, in _get_collection_info
parent=parent)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/galaxy/collection.py", line 296, in from_name
namespace, name = collection.split('.', 1)
ValueError: not enough values to unpack (expected 2, got 1)
```
Instead of `ValueError`, it would be better to give text like
> Improperly formatted collection name argument. Collection name must be of the format "username.collection_name", like "chrismeyersfsu.tower_modules"
| https://github.com/ansible/ansible/issues/59584 | https://github.com/ansible/ansible/pull/59957 | 1b8aa798df6f6fa96ba5ea2a9dbf01b3f1de555c | 14a7722e3957214bcbdc587c0d023d22f7ed2e98 | 2019-07-25T12:16:58Z | python | 2019-08-13T20:36:29Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,576 | ["lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py"] | vmware_deploy_ovf: AttributeError: 'vim.ServiceInstance' object has no attribute 'rootFolder' | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Deploying OVF got AttributeError
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
vmware_deploy_ovf
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.9.0.dev0
config file = /home/qiz/workspace/gitlab/newgos_testing/ansible.cfg
configured module search path = [u'/home/qiz/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/qiz/workspace/github/ansible/lib/ansible
executable location = /home/qiz/workspace/github/ansible/bin/ansible
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
ANSIBLE_SSH_RETRIES(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = 5
DEFAULT_BECOME(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = True
DEFAULT_BECOME_ASK_PASS(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = False
DEFAULT_BECOME_METHOD(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = sudo
DEFAULT_BECOME_USER(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = root
DEFAULT_CALLBACK_PLUGIN_PATH(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = [u'/home/qiz/workspace/gitlab/newgos_testi
DEFAULT_HOST_LIST(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = [u'/home/qiz/workspace/gitlab/newgos_testing/hosts']
DISPLAY_SKIPPED_HOSTS(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = False
HOST_KEY_CHECKING(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = False
RETRY_FILES_ENABLED(/home/qiz/workspace/gitlab/newgos_testing/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```
- hosts: localhost
vars_files:
- ../vars/test.yml
tasks:
- vmware_deploy_ovf:
hostname: "{{ esxi_hostname }}"
username: "{{ esxi_username }}"
password: "{{ esxi_password }}"
validate_certs: False
datacenter: 'ha-datacenter'
datastore: "{{datastore}}"
networks: "{{ ovf_networks | default({'VM Network': 'VM Network'}) }}"
ovf: "{{ovf_path}}"
name: "{{ovf_vm_name}}"
allow_duplicates: False
disk_provisioning: "thin"
power_on: False
wait_for_ip_address: False
register: ovf_deploy
delegate_to: localhost
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
The full traceback is:
Traceback (most recent call last):
File "/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py", line 125, in <module>
_ansiballz_main()
File "/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py", line 117, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py", line 54, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py", line 704, in <module>
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py", line 696, in main
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py", line 484, in upload
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py", line 389, in get_lease
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py", line 359, in get_objects
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py", line 186, in find_network_by_name
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py", line 132, in find_object_by_name
File "/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py", line 565, in get_all_objs
AttributeError: 'vim.ServiceInstance' object has no attribute 'rootFolder'
fatal: [localhost -> localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py\", line 125, in <module>\n _ansiballz_main()\n File \"/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py\", line 117, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/qiz/.ansible/tmp/ansible-tmp-1564076387.99-37546435245957/AnsiballZ_vmware_deploy_ovf.py\", line 54, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py\", line 704, in <module>\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py\", line 696, in main\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py\", line 484, in upload\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py\", line 389, in get_lease\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/__main__.py\", line 359, in get_objects\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py\", line 186, in find_network_by_name\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py\", line 132, in find_object_by_name\n File \"/tmp/ansible_vmware_deploy_ovf_payload_MVOaC0/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py\", line 565, in get_all_objs\nAttributeError: 'vim.ServiceInstance' object has no attribute 'rootFolder'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
| https://github.com/ansible/ansible/issues/59576 | https://github.com/ansible/ansible/pull/59614 | 08d7905be2a45e51ceed315974e25d1008bf4263 | 336be58665e946b4c4c071ced83186fddc128448 | 2019-07-25T09:50:11Z | python | 2019-07-29T09:00:02Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,563 | ["test/lib/ansible_test/_internal/data.py", "test/lib/ansible_test/_internal/payload.py", "test/lib/ansible_test/_internal/provider/layout/__init__.py", "test/lib/ansible_test/_internal/provider/layout/collection.py"] | Support testing collections with deps using --docker | ##### SUMMARY
Running tests on collections which have dependencies with the `--docker` option is not currently supported. Only the collection being tested is copied into the container.
All collections in the same collection root should be copied into the container. Support for dependencies in other collection roots will not be supported. It will be up to the user to make sure all the necessary dependencies are already installed in the same collection root. If unnecessary collections are present, those will be copied as well.
##### ISSUE TYPE
Feature Idea
##### COMPONENT NAME
ansible-test
| https://github.com/ansible/ansible/issues/59563 | https://github.com/ansible/ansible/pull/61364 | 27cac742ca4a0d17f8f70ba5177b2ca3bbea7482 | 8a7b89c66f6a607b2e6032b98455ce7137996dce | 2019-07-24T23:53:47Z | python | 2019-08-27T14:29:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,549 | ["lib/ansible/plugins/cliconf/ios.py"] | ansible_net_model is not populated when "C" in Cisco is lowercase in `show version` | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
When the "C" in Cisco is lowercase in `show version` the `anislbe_net_model` is not being populated.
Example from show version:
~~~
somehostname#show version
Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M), Version 15.2(2)E9, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Sat 08-Sep-18 16:28 by fubar
ROM: Bootstrap program is C3560E boot loader
BOOTLDR: C3560E Boot Loader (C3560X-HBOOT-M) Version 15.2(3r)E, RELEASE SOFTWARE (fc1)
somehostname uptime is 10 weeks, 2 days, 10 hours, 52 minutes
System returned to ROM by power-on
System restarted at 07:04:16 GMT Mon May 13 2019
System image file is "flash:/c3560e-universalk9-mz.152-2.E9.bin"
Last reload reason: Reload command
<snip>
License Level: ipbase
License Type: Permanent
Next reload license Level: ipbase
cisco WS-C3560X-48P (PowerPC405) processor (revision W0) with 262144K bytes of memory.
Processor board ID FDO1944F34G
Last reset from power-on
1 Virtual Ethernet interface
1 FastEthernet interface
52 Gigabit Ethernet interfaces
2 Ten Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : XX:XX:XX:XX:XX:XX
Motherboard assembly number : XX-XXXXX-XX
Motherboard serial number : XXXXXXXXXXX
Model revision number : W0
Motherboard revision number : A0
Model number : WS-C3560X-48P-S
Daughterboard assembly number : 800-32786-02
Daughterboard serial number : FDO194406YV
System serial number : FDO1944F34G
Top Assembly Part Number : 800-38995-01
Top Assembly Revision Number : B0
Version ID : V07
CLEI Code Number : CMMPT00DRB
Hardware Board Revision Number : 0x05
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 54 WS-C3560X-48P 15.2(2)E9 C3560E-UNIVERSALK9-M
Configuration register is 0xF
somehostname#
~~~
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
ios_facts
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/u346989/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/etc/ansible/ansible.cfg) = True
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 6
DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', u'/usr/share/ansible/roles']
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 900
PERSISTENT_CONNECT_RETRY_TIMEOUT(/etc/ansible/ansible.cfg) = 120
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 900
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
```
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 54 WS-C3560X-48P 15.2(2)E9 C3560E-UNIVERSALK9-M
```
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- hosts: all
connection: network_cli
gather_facts: no
tasks:
- name: gather facts from IOS device
ios_facts:
gather_subset: all
- name: Debug ansible_net_model
debug:
var: ansible_net_model
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Allow regex match of lowercase "C" in Cisco and populate `ansible_net_model`
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
TASK [Debug ansible_net_model] *******************************************************************
ok: [<somehostname>] => {
"ansible_net_model": "VARIABLE IS NOT DEFINED!"
}
```
PR: https://github.com/ansible/ansible/pull/59550 | https://github.com/ansible/ansible/issues/59549 | https://github.com/ansible/ansible/pull/59550 | eea46a0d1b99a6dadedbb6a3502d599235fa7ec3 | 4eb156b2f5ac49583f581a4ba39a6397f234e399 | 2019-07-24T19:17:22Z | python | 2019-08-01T13:27:27Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,513 | ["changelogs/fragments/59522-renamed-module-tls-client-auth-params-to-avoid-overlaping-with-fetch_url.yaml", "lib/ansible/modules/packaging/os/pulp_repo.py"] | pulp_repo - using repo with tls client auth fails | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
When you wan't to create / update a repo which needs tls client auth for sync (like redhat repos)
this breaks because this module uses the following vars:
```python
ca_cert
client_cert
client_key
```
which overlap with the fetch_url vars which also use those.
So the api calls to your local pulp server are also made with tls client auth and
not only for the remote repo.
This only affects users who wan't to sync RedHat repos which needs TLS client auth.
The bug happens only in call **server.set_repo_list()** of the module:
```python
server = pulp_server(module, pulp_host, repo_type, wait_for_completion=wait_for_completion)
server.set_repo_list()
repo_exists = server.check_repo_exists(repo)
```
the call to **fetch_url** has overlapping vars the module defines:
```python
def set_repo_list(self):
url = "%s/pulp/api/v2/repositories/?details=true" % self.host
response, info = fetch_url(self.module, url, method='GET')
if info['status'] != 200:
print(response)
print(info)
self.module.fail_json(
msg="Request failed",
status_code=info['status'],
response=info['msg'],
url=url)
self.repo_list = json.load(response)
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
pulp_repo
##### ANSIBLE VERSION
```
ansible 2.8.2
```
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
pulp_repo:
# connect / auth options
pulp_host: REDACTED
url_username: admin
url_password: "{{ pulp_admin_password }}"
force_basic_auth: true
# actual repo options
name: "SOME REPO NAME"
relative_url: "/redhat/7/example"
ca_cert: "/etc/rhsm/ca/redhat-uep.pem"
client_cert: "/etc/pki/entitlement/999999999999999999.pem "
client_key: "/etc/pki/entitlement/9999999999999999999-key.pem"
feed: "https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/"
wait_for_completion: yes
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
create / modify of the pulp repo on the server
##### ACTUAL RESULTS
Connection failure: [SSL: SSL_HANDSHAKE_FAILURE] ssl handshake failure (_ssl.c:1822)
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59513 | https://github.com/ansible/ansible/pull/59522 | 1d0a83269222e508ec0757759382b7f4156d2f69 | 1e59017d272eda0125ae200c29bd3c0b3197c9e5 | 2019-07-24T11:44:54Z | python | 2019-11-18T19:41:40Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,508 | ["changelogs/fragments/60912-constructed-groups-option-sanitization.yaml", "lib/ansible/plugins/inventory/__init__.py"] | aws_ec2 inventory plugin silently modifies hyphenated group names in ansible 2.8.2 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
In Ansible **2.8.2**, the [`aws_ec2` inventory plugin](https://docs.ansible.com/ansible/latest/plugins/inventory/aws_ec2.html)
changes hyphens (`-`) to underscores (`_`) in group names, breaking playbooks
that use hyphenated group names. This behavior is absent in Ansible 2.7.6.
This issue is particularly nasty because there is no sign about the name change in the **playbook** output, it just says that no host was found in the group and hence the group is going to be skipped.
I think that this may discourage people from upgrading from 2.7 to 2.8
The only way of seeing the issue, is using `ansible-inventory`.
I would expect at least a **warning** when running the **playbook**.
It may be possible that this was introduced when the `to_safe_group_name`
function in `ansible.plugins.inventory` has been changed from
``` python
_SAFE_GROUP = re.compile("[^A-Za-z0-9_]")
# Helper methods
def to_safe_group_name(name):
''' Converts 'bad' characters in a string to underscores so they can be used as Ansible hosts or groups '''
return _SAFE_GROUP.sub("_", name)
```
in [2.7.6](https://github.com/ansible/ansible/blob/1594ccf5339ea5dfd675b76a0e7d015f49a3e8e5/lib/ansible/plugins/inventory/__init__.py#L47)
to
``` python
# <snip>
from ansible.inventory.group import to_safe_group_name as original_safe
# <snip>
# Helper methods
def to_safe_group_name(name):
# placeholder for backwards compat
return original_safe(name, force=True, silent=True)
```
in [2.8.2](https://github.com/ansible/ansible/blob/3affc30abef7a8e1af36a1b079f3a1fd7df363e2/lib/ansible/plugins/inventory/__init__.py#L43)
It might even be that the *expected behavior* is the one implemented in version
2.8.2, but I didn't see any warning in the official documentation about this.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
aws_ec2 inventory plugin
lib/ansible/inventory/group.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.2
config file = /home/user/ansiblebug/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /nix/store/mk0vlwm3fdnlvf162vnbxfv8ckfpgxni-python2.7-ansible-2.8.2/lib/python2.7/site-packages/ansible
executable location = /nix/store/mk0vlwm3fdnlvf162vnbxfv8ckfpgxni-python2.7-ansible-2.8.2/bin/ansible
python version = 2.7.16 (default, Mar 2 2019, 18:34:01) [GCC 7.4.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/home/user/ansiblebug/ansible.cfg) = True
DEFAULT_GATHERING(/home/user/ansiblebug/ansible.cfg) = explicit
DEFAULT_LOG_PATH(/home/user/ansiblebug/ansible.cfg) = /home/user/ansiblebug/ansible.log
DEFAULT_PRIVATE_ROLE_VARS(/home/user/ansiblebug/ansible.cfg) = True
DEFAULT_ROLES_PATH(/home/user/ansiblebug/ansible.cfg) = [u'/home/user/ansiblebug/roles']
DISPLAY_SKIPPED_HOSTS(/home/user/ansiblebug/ansible.cfg) = False
INVENTORY_ENABLED(/home/user/ansiblebug/ansible.cfg) = [u'aws_ec2', u'host_list']
```
##### OS / ENVIRONMENT
- NixOS
- Ubuntu 18.04 LTS
##### STEPS TO REPRODUCE
To reproduce the issue, I have built ansible using the [Nix package
manager](https://nixos.org/nix/) to ensure I have an environment as isolated as
possible. But I have noticed the same issue with [ansible from
conda-forge](https://anaconda.org/conda-forge/ansible).
Use the provided inventory (adapted to your AWS set up) and run `ansible-inventory` on it.
##### Ansible 2.8.2 (groups are changed)
Hyphenated groups are **modified** by the `aws_ec2` plugin: `hyphenated-group`
is changed to `hyphenated_group` in the below example.
``` shell
$ ./result-2/bin/ansible --version
ansible 2.8.2
config file = /home/user/ansiblebug/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /nix/store/mk0vlwm3fdnlvf162vnbxfv8ckfpgxni-python2.7-ansible-2.8.2/lib/python2.7/site-packages/ansible
executable location = /nix/store/mk0vlwm3fdnlvf162vnbxfv8ckfpgxni-python2.7-ansible-2.8.2/bin/ansible
python version = 2.7.16 (default, Mar 2 2019, 18:34:01) [GCC 7.4.0]
```
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### Ansible 2.7.6 (groups are unchanged)
Hyphenated groups are left intact by the `aws_ec2` plugin: `hyphenated-group`
is unchanged in the below example.
``` shell
$ ./result/bin/ansible --version
ansible 2.7.6
config file = /home/user/ansiblebug/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /nix/store/bp2swv0nr5miz1h6f3r63zp0wmp0cd34-python2.7-ansible-2.7.6/lib/python2.7/site-packages/ansible
executable location = /nix/store/bp2swv0nr5miz1h6f3r63zp0wmp0cd34-python2.7-ansible-2.7.6/bin/ansible
python version = 2.7.16 (default, Mar 2 2019, 18:34:01) [GCC 7.4.0]
$ AWS_PROFILE=myProfile ./result/bin/ansible-inventory -i hosts_aws_ec2.yml --graph
@all:
|--@aws_ec2:
| |--ExampleInstance
|--@hyphenated-group:
| |--ExampleInstance
|--@ungrouped:
```
##### ACTUAL RESULTS
In ansible 2.8.2, hyphenated groups have their hyphen changed into an underscore with no warning.
``` shell
$ AWS_PROFILE=myProfile ./result-2/bin/ansible-inventory -i hosts_aws_ec2.yml --graph
@all:
|--@aws_ec2:
| |--ExampleInstance
|--@hyphenated_group:
| |--ExampleInstance
|--@ungrouped:
```
| https://github.com/ansible/ansible/issues/59508 | https://github.com/ansible/ansible/pull/60912 | ba25522db4aa633e5ea6918fe04d13d023a55090 | 3247626ac7a3e22739e4e343ebf5919b33784c8e | 2019-07-24T10:32:00Z | python | 2019-08-20T15:32:02Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,504 | ["lib/ansible/modules/files/template.py", "lib/ansible/modules/windows/win_template.py", "lib/ansible/plugins/doc_fragments/template_common.py", "test/integration/targets/win_template/tasks/main.yml", "test/integration/targets/win_template/templates/foo.utf-8.j2"] | win_template and win_copy with content should support encoding | ##### SUMMARY
Mentioned modules should allow to select encoding for a file (defaulting to utf8 or utf16)
I have a requirement to generate simple files with ascii encoding. I can't do that with neither win_copy nor win_template
win_copy currently creates file with UTF16
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
win_copy
win_template
##### ADDITIONAL INFORMATION
Tested on WinSrv 2016, PS-5.1
```yaml
- name: Bootstraping
hosts: all
tasks:
- name: Deploy file
win_copy:
content: 'text'
dest: 'C:\some\path.txt'
```
| https://github.com/ansible/ansible/issues/59504 | https://github.com/ansible/ansible/pull/59701 | 4c1f52c6c0003cfeb271342a579a1f6887c8eb9c | 652bfc7e19f3bab086c1d0389c8d87933f261d54 | 2019-07-24T10:00:21Z | python | 2019-07-30T22:05:24Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,479 | ["lib/ansible/plugins/loader.py", "lib/ansible/utils/collection_loader.py"] | Minimize Ansible imports in collection loader | ##### SUMMARY
The collection loader currently imports a number of things from Ansible, the heaviest of which is config/constants. This makes it heavyweight and somewhat dangerous for ansible-test and unit tests to use. Refactor it to minimize those imports and supply the necessary impls another way (constructor, DI pattern, etc).
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
AnsibleCollectionLoader
##### ADDITIONAL INFORMATION
| https://github.com/ansible/ansible/issues/59479 | https://github.com/ansible/ansible/pull/59483 | def3d1f8150d77c42f1619a7ffa5e9118eb5c734 | 68f1e42d95eab87e39dee29fce52bf2733c855f9 | 2019-07-23T23:14:38Z | python | 2019-08-16T19:36:43Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,465 | ["lib/ansible/plugins/loader.py", "test/integration/targets/plugin_namespace/aliases", "test/integration/targets/plugin_namespace/filter_plugins/test_filter.py", "test/integration/targets/plugin_namespace/lookup_plugins/lookup_name.py", "test/integration/targets/plugin_namespace/tasks/main.yml", "test/integration/targets/plugin_namespace/test_plugins/test_test.py"] | Relative Python import support in collections | ##### SUMMARY
2.9/devel currently supports relative Python imports inside a collection for all but modules/module_utils. Extend the AnsiballZ analysis/bundling to support relative imports for those as well.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
module_common.py
##### ADDITIONAL INFORMATION
This is needed to minimize the number of places a collection must refer to itself by name. Also a convenience for shorter intra-collection Python imports (eg `from ..module_utils.blah import AThing` vs. `from ansible_collections.myns.mycoll.plugins.module_utils.blah import AThing`) | https://github.com/ansible/ansible/issues/59465 | https://github.com/ansible/ansible/pull/59950 | d3624cf4a41591d546da1d4340123e70bf5984e6 | 3777c2e93df23ac6bf59de6196c28a756aed7c50 | 2019-07-23T18:12:01Z | python | 2019-08-09T06:23:12Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,451 | ["setup.py"] | ansible-galaxy collection build failing to find meta file | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
`ansible-galaxy collection build` fails when unable to locate new ` lib/ansible/galaxy/data/collections_galaxy_meta.yml` data file.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-galaxy
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/calvin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/calvin/projects/ansible/lib/ansible
executable location = /home/calvin/.local/share/virtualenvs/orion/bin/ansible
python version = 3.6.8 (default, Mar 21 2019, 10:08:12) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Fedora 28, should affect all versions OS tho
##### STEPS TO REPRODUCE
- Install latest `devel` branch of ansible *without* the `pip -e` flag
- Attempt to build a collection with `ansible-galaxy collection build`
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Expect the collection to be built and a `.tar.gz` artifact to be created.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-galaxy 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/calvin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible
executable location = /home/calvin/.local/share/virtualenvs/orion/bin/ansible-galaxy
python version = 3.6.8 (default, Mar 21 2019, 10:08:12) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)]
Using /etc/ansible/ansible.cfg as config file
Opened /home/calvin/.ansible_galaxy
ERROR! Unexpected Exception, this is probably a bug: [Errno 2] No such file or directory: b'/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/galaxy/data/collections_galaxy_meta.yml'
the full traceback was:
Traceback (most recent call last):
File "/home/calvin/.local/share/virtualenvs/orion/bin/ansible-galaxy", line 111, in <module>
exit_code = cli.run()
File "/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 269, in run
context.CLIARGS['func']()
File "/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 398, in execute_build
build_collection(collection_path, output_path, force)
File "/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/galaxy/collection.py", line 360, in build_collection
collection_meta = _get_galaxy_yml(b_galaxy_path)
File "/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/galaxy/collection.py", line 528, in _get_galaxy_yml
meta_info = get_collections_galaxy_meta_info()
File "/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/galaxy/__init__.py", line 38, in get_collections_galaxy_meta_info
with open(to_bytes(meta_path, errors='surrogate_or_strict'), 'rb') as galaxy_obj:
FileNotFoundError: [Errno 2] No such file or directory: b'/home/calvin/.local/share/virtualenvs/orion/lib/python3.6/site-packages/ansible/galaxy/data/collections_galaxy_meta.yml'
```
| https://github.com/ansible/ansible/issues/59451 | https://github.com/ansible/ansible/pull/59452 | 44a262714cc316f2c70be5654b1a15898af1189e | 65bedaf074257ec85239843cec1352da66621338 | 2019-07-23T15:45:34Z | python | 2019-07-23T20:52:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,442 | ["lib/ansible/plugins/inventory/openstack.py"] | Stricter config parsing makes openstack inventory clouds_yaml_path unusable | ##### SUMMARY
In current `devel`, using the openstack inventory plugin with the parameter `clouds_yaml_path` no longer works.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/cli/config.py
lib/ansible/plugins/inventory/openstack.py
##### ANSIBLE VERSION
```paste below
$ ansible --version
ansible 2.9.0.dev0
config file = None
configured module search path = ['/Users/alancoding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/alancoding/Documents/repos/ansible/lib/ansible
executable location = /Users/alancoding/.virtualenvs/ansible3/bin/ansible
python version = 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]
```
##### CONFIGURATION
```paste below
$ ansible-config dump --only-changed
ANSIBLE_NOCOWS(env: ANSIBLE_NOCOWS) = True
```
##### OS / ENVIRONMENT
CentOS / Mac OS / control machine
##### STEPS TO REPRODUCE
Use inventory file `openstack.yml` as follows:
(1)
```yaml
plugin: openstack
clouds_yaml_path:
- private/openstack/clouds.yml
```
that format is the one which has historically worked. It is not the documented expected format.
----
The documentation suggests this would work, but it never has:
(2)
```yaml
plugin: openstack
clouds_yaml_path: private/openstack/clouds.yml
```
##### EXPECTED RESULTS
Generally, I would expect one of those 2 files to be successfully parsed.
Specifically, right now, I would like the 1st of those 2 to be parsed, because that is the only format that works in Ansible 2.8.
##### ACTUAL RESULTS
For inventory file (1)
```
$ ansible-inventory -i private/openstack/openstack.yml --list --export
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with auto plugin: Invalid type for configuration
option plugin_type: inventory plugin: openstack setting: clouds_yaml_path : Invalid type provided for "string": ['private/openstack/clouds.yml']
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with yaml plugin: Plugin configuration YAML file,
not YAML inventory
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with ini plugin: Invalid host pattern 'plugin:'
supplied, ending in ':' is not allowed, this character is reserved to provide a port.
[WARNING]: Unable to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
"_meta": {
"hostvars": {}
},
"all": {
"children": [
"ungrouped"
]
}
}
```
This case errors because of validation introduced in https://github.com/ansible/ansible/pull/58530, ping @bcoca
From verbose output:
```
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with auto plugin: Invalid type for configuration
option plugin_type: inventory plugin: openstack setting: clouds_yaml_path : Invalid type provided for "string": ['private/openstack/clouds.yml']
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/inventory/manager.py", line 277, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/inventory/auto.py", line 58, in parse
plugin.parse(inventory, loader, path, cache=cache)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/inventory/openstack.py", line 141, in parse
self._config_data = self._read_config_data(path)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/inventory/__init__.py", line 229, in _read_config_data
self.set_options(direct=config)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/__init__.py", line 75, in set_options
self._options = C.config.get_plugin_options(get_plugin_class(self), self._load_name, keys=task_keys, variables=var_options, direct=direct)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/config/manager.py", line 348, in get_plugin_options
options[option] = self.get_config_value(option, plugin_type=plugin_type, plugin_name=name, keys=keys, variables=variables, direct=direct)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/config/manager.py", line 409, in get_config_value
keys=keys, variables=variables, direct=direct)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/config/manager.py", line 502, in get_config_value_and_origin
(to_native(_get_entry(plugin_type, plugin_name, config)), to_native(e)))
```
----
For inventory file (2)
```
$ ansible-inventory -i private/openstack/openstack.yml --list --export
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with auto plugin: must be str, not list
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with yaml plugin: Plugin configuration YAML file,
not YAML inventory
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with ini plugin: Invalid host pattern 'plugin:'
supplied, ending in ':' is not allowed, this character is reserved to provide a port.
[WARNING]: Unable to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
"_meta": {
"hostvars": {}
},
"all": {
"children": [
"ungrouped"
]
}
}
```
This fails because the openstack inventory plugin code depends on the input being a list. See:
https://github.com/ansible/ansible/blob/333953117c9e2ff62ebccdbcbb5947271b88ce73/lib/ansible/plugins/inventory/openstack.py#L178-L179
I can confirm that `client_config.CONFIG_FILES` is a list. Thus, the source of this error is trying to add the input value to this list. That requires both to be a list, thus, the error.
From verbose output:
```
[WARNING]: * Failed to parse /Users/alancoding/Documents/repos/ansible-inventory-file-examples/private/openstack/openstack.yml with auto plugin: must be str, not list
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/inventory/manager.py", line 268, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/inventory/auto.py", line 58, in parse
plugin.parse(inventory, loader, path, cache=cache)
File "/Users/alancoding/Documents/repos/ansible/lib/ansible/plugins/inventory/openstack.py", line 183, in parse
client_config.CONFIG_FILES)
``` | https://github.com/ansible/ansible/issues/59442 | https://github.com/ansible/ansible/pull/59458 | 6ff54c546e6e8065ee89dea8f7422949977872a2 | 5a7f579d86b52754d5634fd6719882158c01ec18 | 2019-07-23T14:11:10Z | python | 2019-07-24T08:25:44Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,438 | ["changelogs/fragments/59438-hostname-use-hostnamectl.yml", "lib/ansible/modules/system/hostname.py"] | hostname module systemd strategy using hostname | ##### SUMMARY
On Fedora the systemd strategy is used, which is fine, but getting the current hostname uses the `hostname` command which may not always be present.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
hostname
##### ANSIBLE VERSION
```paste below
ansible 2.8.2
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/duck/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/duck/.local/lib/python3.7/site-packages/ansible
executable location = /home/duck/.local/bin/ansible
python version = 3.7.4 (default, Jul 11 2019, 10:43:21) [GCC 8.3.0]
```
##### CONFIGURATION
```paste below
ANSIBLE_FORCE_COLOR(env: ANSIBLE_FORCE_COLOR) = True
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = …
```
##### OS / ENVIRONMENT
The control node is using Debian unstable. I'm running molecule to run a test in Fedora 29.
##### STEPS TO REPRODUCE
The following is run on two test nodes, on Fedora 29 where it fails and one Centos & where it works fine.
```yaml
- name: Prepare hosts
hosts: all
tasks:
- name: set proper hostname
hostname:
name: "{{ ansible_nodename }}.example.com"
```
##### EXPECTED RESULTS
The hostname should be set without error.
##### ACTUAL RESULTS
The systemd strategy uses hostnamectl to get and set the current and permanent hostnames except in `get_current_hostname()` where is uses `hostname` instead of `hostnamectl --transient status`. As in a container this command is not necessarily present, it fails with the following error:
```paste below
The full traceback is:
File "/tmp/ansible_hostname_payload_gb0hppku/ansible_hostname_payload.zip/ansible/module_utils/basic.py", line 1974, in get_bin_path
bin_path = get_bin_path(arg, required, opt_dirs)
File "/tmp/ansible_hostname_payload_gb0hppku/ansible_hostname_payload.zip/ansible/module_utils/common/process.py", line 41, in get_bin_path
raise ValueError('Failed to find required executable %s in paths: %s' % (arg, os.pathsep.join(paths)))
fatal: [ansible-test-builder]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"name": "ansible-test-builder.example.com"
}
},
"msg": "Failed to find required executable hostname in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
```
| https://github.com/ansible/ansible/issues/59438 | https://github.com/ansible/ansible/pull/59974 | b0fd1043e186c79d9fcc0f0d592ea3324deef6b6 | 53aa258d78650317aae09328980801f9d338c0b5 | 2019-07-23T13:29:46Z | python | 2019-09-11T04:57:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,433 | ["changelogs/fragments/file-fix-diff-peek-arg-spec.yaml", "lib/ansible/modules/files/file.py", "lib/ansible/plugins/action/__init__.py", "test/integration/targets/file/tasks/diff_peek.yml", "test/integration/targets/file/tasks/main.yml"] | Template module shows all rows as difference. | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Template module shows all rows as difference when `STRING_CONVERSION_ACTION=error`. It's seem that Template module lost `--- before` information.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
Template Module
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
$ ansible --version
ansible 2.8.2
config file = /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/ansible.cfg
configured module search path = ['/Users/mhimuro/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible
executable location = /Users/mhimuro/devel/homebrew/bin/ansible
python version = 3.7.4 (default, Jul 12 2019, 09:36:09) [Clang 10.0.1 (clang-1001.0.46.4)]
$
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
STRING_CONVERSION_ACTION(/Users/mhimuro/devel/project/xxx/mhimuro/diff-test/ansible.cfg) = error
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
target OS versions: CentOS Linux release 7.6.1810 (Core)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
1. prepare dummy.txt on target os.
```command
# echo hello > /root/dummy.txt
```
2. ansible-playbook
<!--- Paste example playbooks or commands between quotes below -->
```command
$ ansible-playbook -i hosts site.yml --diff --check
PLAY [deploy by template module] ***********************************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
ok: [192.168.0.196]
TASK [template] ****************************************************************************************************************************************************************************************************
--- before
+++ after: /Users/mhimuro/.ansible/tmp/ansible-local-6716163hjzxdi/tmp9ta05f8n/dummy.txt
@@ -0,0 +1,2 @@
+hello
+world
changed: [192.168.0.196]
PLAY RECAP *********************************************************************************************************************************************************************************************************
192.168.0.196 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
$
```
```yaml
$ cat site.yml
- name: deploy by template module
hosts: all
tasks:
- template:
src: dummy.txt
dest: /root/dummy.txt
```
```dummy.txt
$ cat dummy.txt
hello
world
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Show only modified row.
```
TASK [template] ****************************************************************************************************************************************************************************************************
--- before: /root/dummy.txt
+++ after: /Users/mhimuro/.ansible/tmp/ansible-local-67303hkyg6c4n/tmpl13oaaoa/dummy.txt
@@ -1 +1,2 @@
hello
+world
changed: [192.168.0.196]
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
$ ansible-playbook -i hosts site.yml --diff --check -vvvv
ansible-playbook 2.8.2
config file = /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/ansible.cfg
configured module search path = ['/Users/mhimuro/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible
executable location = /Users/mhimuro/devel/homebrew/bin/ansible-playbook
python version = 3.7.4 (default, Jul 12 2019, 09:36:09) [Clang 10.0.1 (clang-1001.0.46.4)]
Using /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/hosts as it did not pass it's verify_file() method
script declined parsing /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/hosts as it did not pass it's verify_file() method
auto declined parsing /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/hosts as it did not pass it's verify_file() method
Parsed /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/hosts inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: site.yml *************************************************************************************************************************************************************************************************
Positional arguments: site.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
check: True
diff: True
inventory: ('/Users/mhimuro/devel/project/xxx/mhimuro/diff-test/hosts',)
forks: 5
1 plays in site.yml
PLAY [deploy by template module] ***********************************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
task path: /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/site.yml:1
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<192.168.0.196> (0, b'/root\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876 `" && echo ansible-tmp-1563877177.7595708-149449123721876="` echo /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876 `" ) && sleep 0'"'"''
<192.168.0.196> (0, b'ansible-tmp-1563877177.7595708-149449123721876=/root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> Attempting python interpreter discovery
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<192.168.0.196> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python2.7\n/usr/libexec/platform-python\n/usr/bin/python\nENDFOUND\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<192.168.0.196> (0, b'{"osrelease_content": "NAME=\\"CentOS Linux\\"\\nVERSION=\\"7 (Core)\\"\\nID=\\"centos\\"\\nID_LIKE=\\"rhel fedora\\"\\nVERSION_ID=\\"7\\"\\nPRETTY_NAME=\\"CentOS Linux 7 (Core)\\"\\nANSI_COLOR=\\"0;31\\"\\nCPE_NAME=\\"cpe:/o:centos:centos:7\\"\\nHOME_URL=\\"https://www.centos.org/\\"\\nBUG_REPORT_URL=\\"https://bugs.centos.org/\\"\\n\\nCENTOS_MANTISBT_PROJECT=\\"CentOS-7\\"\\nCENTOS_MANTISBT_PROJECT_VERSION=\\"7\\"\\nREDHAT_SUPPORT_PRODUCT=\\"centos\\"\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\"7\\"\\n\\n", "platform_dist_result": ["centos", "7.6.1810", "Core"]}\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible/modules/system/setup.py
<192.168.0.196> PUT /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpe0yldgj7 TO /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/AnsiballZ_setup.py
<192.168.0.196> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 '[192.168.0.196]'
<192.168.0.196> (0, b'sftp> put /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpe0yldgj7 /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/AnsiballZ_setup.py\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpe0yldgj7\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/AnsiballZ_setup.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:10 O:196608 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:11 O:229376 S:23099\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 32768 bytes at 163840\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 10 32768 bytes at 196608\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 11 23099 bytes at 229376\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/ /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.0.196> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 -tt 192.168.0.196 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/AnsiballZ_setup.py && sleep 0'"'"''
<192.168.0.196> (0, b'\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_fibre_channel_wwn": [], "module_setup": true, "ansible_distribution_version": "7.6", "ansible_distribution_file_variety": "RedHat", "ansible_env": {"LANG": "C", "LC_NUMERIC": "C", "TERM": "screen", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/0", "SHLVL": "2", "SSH_TTY": "/dev/pts/0", "PWD": "/root", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "XDG_SESSION_ID": "27910", "SSH_CLIENT": "192.168.0.116 53653 22", "LOGNAME": "root", "USER": "root", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:", "HOME": "/root", "LC_ALL": "C", "_": "/usr/bin/python", "SSH_CONNECTION": "192.168.0.116 53653 192.168.0.196 22"}, "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_vethcb884b7": {"macaddress": "8a:47:31:d5:d3:1e", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "vethcb884b7", "promisc": true, "timestamping": ["rx_software", "software"], "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::8847:31ff:fed5:d31e"}], "active": true, "speed": 10000}, "ansible_default_ipv4": {"macaddress": "1c:87:2c:41:6e:ce", "network": "192.168.0.0", "mtu": 1500, "broadcast": "192.168.0.255", "alias": "enp4s0", "netmask": "255.255.255.0", "address": "192.168.0.196", "interface": "enp4s0", "type": "ether", "gateway": "192.168.0.3"}, "ansible_swapfree_mb": 7654, "ansible_default_ipv6": {}, "ansible_cmdline": {"LANG": "ja_JP.UTF-8", "BOOT_IMAGE": "/vmlinuz-3.10.0-957.1.3.el7.x86_64", "quiet": true, "rhgb": true, "rd.lvm.lv": "centos/swap", "crashkernel": "auto", "ro": true, "root": "/dev/mapper/centos-root"}, "ansible_machine_id": "75e09accf1bb49fa8d70b2de021e00fb", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "BD9ABFA8-FE30-2EE7-41D2-1C872C416ECE", "ansible_pkg_mgr": "yum", "ansible_vethc03bba1": {"macaddress": "1e:41:f1:a6:31:ff", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "vethc03bba1", "promisc": true, "timestamping": ["rx_software", "software"], "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::1c41:f1ff:fea6:31ff"}], "active": true, "speed": 10000}, "ansible_iscsi_iqn": "", "ansible_veth2726a80": {"macaddress": "4a:02:87:c6:94:14", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "veth2726a80", "promisc": true, "timestamping": ["rx_software", "software"], "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::4802:87ff:fec6:9414"}], "active": true, "speed": 10000}, "ansible_all_ipv6_addresses": ["fe80::1e87:2cff:fe41:6ece", "fe80::fcb2:74ff:feb8:ed7a", "fe80::1c41:f1ff:fea6:31ff", "fe80::a0e7:6fff:fea1:a0d4", "fe80::4802:87ff:fec6:9414", "fe80::42:20ff:fe23:46cf", "fe80::8847:31ff:fed5:d31e"], "ansible_uptime_seconds": 6684898, "ansible_kernel": "3.10.0-957.1.3.el7.x86_64", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 5, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 5, "final", 0]}, "ansible_is_chroot": false, "ansible_hostnqn": "", "ansible_user_shell": "/bin/bash", "ansible_product_serial": "System Serial Number", "ansible_form_factor": "Desktop", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_user_id": "root", "ansible_selinux_python_present": true, "ansible_local": {}, "ansible_processor_vcpus": 8, "ansible_docker0": {"macaddress": "02:42:20:23:46:cf", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [requested on]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "on", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "off [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [requested on]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "interfaces": ["veth2726a80", "vethc03bba1", "veth5af9b4f", "veth27f581f", "vethcb884b7"], "id": "8000.0242202346cf", "mtu": 1500, "device": "docker0", "promisc": false, "stp": false, "ipv4": {"broadcast": "172.17.255.255", "netmask": "255.255.0.0", "network": "172.17.0.0", "address": "172.17.0.1"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::42:20ff:fe23:46cf"}], "active": true, "timestamping": ["rx_software", "software"], "type": "bridge", "hw_timestamp_filters": []}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "3", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "4", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "5", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "6", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "7", "GenuineIntel", "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAAdVLDGWn3TP6UxDh2EOhbblOwKh9nc8rDSSYZ33sc9SQIPhmYsGGnP62cC5Fm4uVe14lBF0Thf8IZCMIYpuLY=", "ansible_user_gid": 0, "ansible_system_vendor": "ASUS", "ansible_swaptotal_mb": 7935, "ansible_distribution_major_version": "7", "ansible_real_group_id": 0, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDyDmjz8qJ/JvPuvlZi3qiIT1vBBciJiargJHLs8ccywFNcVbJiXj/3fibFoE2VISKLtcYtPvxAzMnKeowdPc5BmmTmdKyyvSMTxmbX25lhb9t0LhkFeIUXbhy+j9Wvj6/d39Yuh2zUbIqI5YR/qpssEUeh2z/eROm/jN0lj1TSnhcYxDAe04GvXGBfDCCz1lDW/rX1/JgBIdRYGUyB57BbeS3FlvFxz7NfzBEdAdr+Dvv/oxTd4aoteqx1+Z8pNVKYkDw1nbjMFcZDF9u/uANvwh3p0qw4Nfve5Sit/zkDdkdC+DkpnnR5W+M2O1o7Iyq90AafS4xCqzYG6MDR+Jv/", "ansible_user_gecos": "root", "ansible_processor_threads_per_core": 2, "ansible_system": "Linux", "ansible_all_ipv4_addresses": ["192.168.0.196", "172.17.0.1"], "ansible_python_version": "2.7.5", "ansible_product_version": "System Version", "ansible_service_mgr": "systemd", "ansible_memory_mb": {"real": {"total": 7690, "used": 7491, "free": 199}, "swap": {"cached": 16, "total": 7935, "free": 7654, "used": 281}, "nocache": {"used": 6807, "free": 883}}, "ansible_user_dir": "/root", "gather_subset": ["all"], "ansible_real_user_id": 0, "ansible_virtualization_role": "host", "ansible_dns": {"nameservers": ["192.168.0.5", "192.168.0.16"], "search": ["work"]}, "ansible_effective_group_id": 0, "ansible_enp4s0": {"macaddress": "1c:87:2c:41:6e:ce", "features": {"tx_checksum_ipv4": "off", "generic_receive_offload": "on", "tx_checksum_ipv6": "off", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off", "highdma": "on [fixed]", "rx_fcs": "off", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "off", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_checksumming": "off", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "off", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "off", "rx_checksumming": "on", "tx_tcp_segmentation": "off", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "off [requested on]", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "off", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "ether", "pciid": "0000:04:00.0", "module": "r8169", "mtu": 1500, "device": "enp4s0", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "192.168.0.255", "netmask": "255.255.255.0", "network": "192.168.0.0", "address": "192.168.0.196"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::1e87:2cff:fe41:6ece"}], "active": true, "speed": 1000, "hw_timestamp_filters": []}, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 7690, "ansible_device_links": {"masters": {"loop1": ["dm-3"], "loop0": ["dm-3"], "sda2": ["dm-0", "dm-1", "dm-2"], "dm-3": ["dm-4", "dm-5", "dm-6", "dm-7", "dm-8"]}, "labels": {}, "ids": {"sr0": ["ata-ASUS_DRW-24F1ST_a_S10M68EG2002AW"], "sda2": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS-part2", "lvm-pv-uuid-Q78tme-t9AP-o3G0-fAs8-27fr-QioB-m5PGHc", "wwn-0x5000039fe0c30158-part2"], "sda": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS", "wwn-0x5000039fe0c30158"], "dm-8": ["dm-name-docker-253:0-83120-6c1737562dcc6565452cd5d9ede5233096d5c71f6a3662c480a42fe564238013"], "sda1": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS-part1", "wwn-0x5000039fe0c30158-part1"], "dm-6": ["dm-name-docker-253:0-83120-243e38f2f03754a47a972b3fc1050c92917039ea7a1c42c3d8c09c5bc626aa28"], "dm-7": ["dm-name-docker-253:0-83120-401522c5a3d61e22752813bd371d8367853734d43e4746474387cfc5bf727dbf"], "dm-4": ["dm-name-docker-253:0-83120-247c996ac26c8de4c9da53d463981a78e5285f5a3be2b3a8d9d646aa5d43f410"], "dm-5": ["dm-name-docker-253:0-83120-a4623e9c7c34ce0ad5421a699470b3ecdb8dbcaa95b22d0e8be7dd7a730d17ff"], "dm-2": ["dm-name-centos-home", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnSMaaSDIGwxchQRoUyL1ntnMPT6KOAriTU"], "dm-0": ["dm-name-centos-root", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnSUq3u89edCoYmtN3lATh7xy5GMZr5Pgo7"], "dm-1": ["dm-name-centos-swap", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnS5bxciorzpAwg9QYL7sMS1PoWUcb0IiXV"]}, "uuids": {"sda1": ["7d6d535a-6728-4c83-8ab2-40cb45b64e7d"], "dm-2": ["80fe1d0c-c3c4-4442-a467-f2975fd87ba5"], "dm-0": ["ac012a2a-a7f8-425b-911a-9197e611fbfe"], "dm-8": ["48eda381-df74-4ad8-a63a-46c167bf1144"], "dm-1": ["13900741-5a75-44f6-8848-3325135493d0"]}}, "ansible_apparmor": {"status": "disabled"}, "ansible_proc_cmdline": {"LANG": "ja_JP.UTF-8", "BOOT_IMAGE": "/vmlinuz-3.10.0-957.1.3.el7.x86_64", "quiet": true, "rhgb": true, "rd.lvm.lv": ["centos/root", "centos/swap"], "crashkernel": "auto", "ro": true, "root": "/dev/mapper/centos-root"}, "ansible_memfree_mb": 199, "ansible_processor_count": 1, "ansible_hostname": "intra", "ansible_interfaces": ["veth2726a80", "vethcb884b7", "docker0", "lo", "enp4s0", "vethc03bba1", "veth5af9b4f", "veth27f581f"], "ansible_selinux": {"status": "disabled"}, "ansible_fqdn": "ec2-52-213-25-113.eu-west-1.compute.amazonaws.com", "ansible_mounts": [{"block_used": 8256, "uuid": "80fe1d0c-c3c4-4442-a467-f2975fd87ba5", "size_total": 437290033152, "block_total": 106760262, "mount": "/home", "block_available": 106752006, "size_available": 437256216576, "fstype": "xfs", "inode_total": 427249664, "options": "rw,relatime,attr2,inode64,noquota", "device": "/dev/mapper/centos-home", "inode_used": 3, "block_size": 4096, "inode_available": 427249661}, {"block_used": 74602, "uuid": "7d6d535a-6728-4c83-8ab2-40cb45b64e7d", "size_total": 517713920, "block_total": 126395, "mount": "/boot", "block_available": 51793, "size_available": 212144128, "fstype": "xfs", "inode_total": 512000, "options": "rw,relatime,attr2,inode64,noquota", "device": "/dev/sda1", "inode_used": 361, "block_size": 4096, "inode_available": 511639}, {"block_used": 10291, "uuid": "48eda381-df74-4ad8-a63a-46c167bf1144", "size_total": 10725883904, "block_total": 2618624, "mount": "/var/lib/docker/devicemapper/mnt/247c996ac26c8de4c9da53d463981a78e5285f5a3be2b3a8d9d646aa5d43f410", "block_available": 2608333, "size_available": 10683731968, "fstype": "xfs", "inode_total": 10484736, "options": "rw,relatime,nouuid,attr2,inode64,logbsize=64k,sunit=128,swidth=128,noquota", "device": "/dev/mapper/docker-253:0-83120-247c996ac26c8de4c9da53d463981a78e5285f5a3be2b3a8d9d646aa5d43f410", "inode_used": 519, "block_size": 4096, "inode_available": 10484217}, {"block_used": 7070823, "uuid": "ac012a2a-a7f8-425b-911a-9197e611fbfe", "size_total": 53660876800, "block_total": 13100800, "mount": "/", "block_available": 6029977, "size_available": 24698785792, "fstype": "xfs", "inode_total": 52428800, "options": "rw,relatime,attr2,inode64,noquota", "device": "/dev/mapper/centos-root", "inode_used": 146375, "block_size": 4096, "inode_available": 52282425}, {"block_used": 79838, "uuid": "48eda381-df74-4ad8-a63a-46c167bf1144", "size_total": 10725883904, "block_total": 2618624, "mount": "/var/lib/docker/devicemapper/mnt/a4623e9c7c34ce0ad5421a699470b3ecdb8dbcaa95b22d0e8be7dd7a730d17ff", "block_available": 2538786, "size_available": 10398867456, "fstype": "xfs", "inode_total": 10484736, "options": "rw,relatime,nouuid,attr2,inode64,logbsize=64k,sunit=128,swidth=128,noquota", "device": "/dev/mapper/docker-253:0-83120-a4623e9c7c34ce0ad5421a699470b3ecdb8dbcaa95b22d0e8be7dd7a730d17ff", "inode_used": 14836, "block_size": 4096, "inode_available": 10469900}, {"block_used": 334234, "uuid": "48eda381-df74-4ad8-a63a-46c167bf1144", "size_total": 10725883904, "block_total": 2618624, "mount": "/var/lib/docker/devicemapper/mnt/6c1737562dcc6565452cd5d9ede5233096d5c71f6a3662c480a42fe564238013", "block_available": 2284390, "size_available": 9356861440, "fstype": "xfs", "inode_total": 10484736, "options": "rw,relatime,nouuid,attr2,inode64,logbsize=64k,sunit=128,swidth=128,noquota", "device": "/dev/mapper/docker-253:0-83120-6c1737562dcc6565452cd5d9ede5233096d5c71f6a3662c480a42fe564238013", "inode_used": 79705, "block_size": 4096, "inode_available": 10405031}, {"block_used": 42443, "uuid": "48eda381-df74-4ad8-a63a-46c167bf1144", "size_total": 10725883904, "block_total": 2618624, "mount": "/var/lib/docker/devicemapper/mnt/243e38f2f03754a47a972b3fc1050c92917039ea7a1c42c3d8c09c5bc626aa28", "block_available": 2576181, "size_available": 10552037376, "fstype": "xfs", "inode_total": 10484736, "options": "rw,relatime,nouuid,attr2,inode64,logbsize=64k,sunit=128,swidth=128,noquota", "device": "/dev/mapper/docker-253:0-83120-243e38f2f03754a47a972b3fc1050c92917039ea7a1c42c3d8c09c5bc626aa28", "inode_used": 7156, "block_size": 4096, "inode_available": 10477580}, {"block_used": 322515, "uuid": "48eda381-df74-4ad8-a63a-46c167bf1144", "size_total": 10725883904, "block_total": 2618624, "mount": "/var/lib/docker/devicemapper/mnt/401522c5a3d61e22752813bd371d8367853734d43e4746474387cfc5bf727dbf", "block_available": 2296109, "size_available": 9404862464, "fstype": "xfs", "inode_total": 10484736, "options": "rw,relatime,nouuid,attr2,inode64,logbsize=64k,sunit=128,swidth=128,noquota", "device": "/dev/mapper/docker-253:0-83120-401522c5a3d61e22752813bd371d8367853734d43e4746474387cfc5bf727dbf", "inode_used": 79368, "block_size": 4096, "inode_available": 10405368}], "ansible_nodename": "intra.work", "ansible_lvm": {"pvs": {"/dev/sda2": {"free_g": "0.06", "size_g": "465.27", "vg": "centos"}}, "lvs": {"home": {"size_g": "407.46", "vg": "centos"}, "root": {"size_g": "50.00", "vg": "centos"}, "swap": {"size_g": "7.75", "vg": "centos"}}, "vgs": {"centos": {"free_g": "0.06", "size_g": "465.27", "num_lvs": "3", "num_pvs": "1"}}}, "ansible_domain": "eu-west-1.compute.amazonaws.com", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_virtualization_type": "kvm", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIEzv1iG3Mak/xFq6KbljB8M4YaTfHo/ZiskvcC9Kz7kV", "ansible_processor_cores": 4, "ansible_bios_version": "2201", "ansible_date_time": {"weekday_number": "2", "iso8601_basic_short": "20190723T191938", "tz": "JST", "weeknumber": "29", "hour": "19", "year": "2019", "minute": "19", "tz_offset": "+0900", "month": "07", "epoch": "1563877178", "iso8601_micro": "2019-07-23T10:19:38.711920Z", "weekday": "\\u706b\\u66dc\\u65e5", "time": "19:19:38", "date": "2019-07-23", "iso8601": "2019-07-23T10:19:38Z", "day": "23", "iso8601_basic": "20190723T191938711851", "second": "38"}, "ansible_distribution_release": "Core", "ansible_os_family": "RedHat", "ansible_effective_user_id": 0, "ansible_veth27f581f": {"macaddress": "fe:b2:74:b8:ed:7a", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "veth27f581f", "promisc": true, "timestamping": ["rx_software", "software"], "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::fcb2:74ff:feb8:ed7a"}], "active": true, "speed": 10000}, "ansible_product_name": "All Series", "ansible_devices": {"dm-5": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["dm-name-docker-253:0-83120-a4623e9c7c34ce0ad5421a699470b3ecdb8dbcaa95b22d0e8be7dd7a730d17ff"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "65536", "model": null, "partitions": {}, "holders": [], "size": "10.00 GB"}, "dm-3": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "209715200", "links": {"masters": ["dm-4", "dm-5", "dm-6", "dm-7", "dm-8"], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": ["docker-253:0-83120-247c996ac26c8de4c9da53d463981a78e5285f5a3be2b3a8d9d646aa5d43f410", "docker-253:0-83120-a4623e9c7c34ce0ad5421a699470b3ecdb8dbcaa95b22d0e8be7dd7a730d17ff", "docker-253:0-83120-243e38f2f03754a47a972b3fc1050c92917039ea7a1c42c3d8c09c5bc626aa28", "docker-253:0-83120-401522c5a3d61e22752813bd371d8367853734d43e4746474387cfc5bf727dbf", "docker-253:0-83120-6c1737562dcc6565452cd5d9ede5233096d5c71f6a3662c480a42fe564238013"], "size": "100.00 GB"}, "sr0": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "ASUS", "sectors": "2097151", "links": {"masters": [], "labels": [], "ids": ["ata-ASUS_DRW-24F1ST_a_S10M68EG2002AW"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)", "sectorsize": "512", "removable": "1", "support_discard": "0", "model": "DRW-24F1ST a", "partitions": {}, "holders": [], "size": "1024.00 MB"}, "sda": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "ATA", "sectors": "976773168", "links": {"masters": [], "labels": [], "ids": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS", "wwn-0x5000039fe0c30158"], "uuids": []}, "partitions": {"sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0", "dm-1", "dm-2"], "labels": [], "ids": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS-part2", "lvm-pv-uuid-Q78tme-t9AP-o3G0-fAs8-27fr-QioB-m5PGHc", "wwn-0x5000039fe0c30158-part2"], "uuids": []}, "sectors": "975747072", "start": "1026048", "holders": ["centos-root", "centos-swap", "centos-home"], "size": "465.27 GB"}, "sda1": {"sectorsize": 512, "uuid": "7d6d535a-6728-4c83-8ab2-40cb45b64e7d", "links": {"masters": [], "labels": [], "ids": ["ata-TOSHIBA_DT01ABA050V_45I6LY9KS-part1", "wwn-0x5000039fe0c30158-part1"], "uuids": ["7d6d535a-6728-4c83-8ab2-40cb45b64e7d"]}, "sectors": "1024000", "start": "2048", "holders": [], "size": "500.00 MB"}}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "TOSHIBA DT01ABA0", "wwn": "0x5000039fe0c30158", "holders": [], "size": "465.76 GB"}, "dm-8": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["dm-name-docker-253:0-83120-6c1737562dcc6565452cd5d9ede5233096d5c71f6a3662c480a42fe564238013"], "uuids": ["48eda381-df74-4ad8-a63a-46c167bf1144"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "65536", "model": null, "partitions": {}, "holders": [], "size": "10.00 GB"}, "dm-6": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["dm-name-docker-253:0-83120-243e38f2f03754a47a972b3fc1050c92917039ea7a1c42c3d8c09c5bc626aa28"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "65536", "model": null, "partitions": {}, "holders": [], "size": "10.00 GB"}, "dm-7": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["dm-name-docker-253:0-83120-401522c5a3d61e22752813bd371d8367853734d43e4746474387cfc5bf727dbf"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "65536", "model": null, "partitions": {}, "holders": [], "size": "10.00 GB"}, "loop1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "4194304", "links": {"masters": ["dm-3"], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": ["docker-253:0-83120-pool"], "size": "2.00 GB"}, "loop0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "209715200", "links": {"masters": ["dm-3"], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": null, "partitions": {}, "holders": ["docker-253:0-83120-pool"], "size": "100.00 GB"}, "dm-2": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "854499328", "links": {"masters": [], "labels": [], "ids": ["dm-name-centos-home", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnSMaaSDIGwxchQRoUyL1ntnMPT6KOAriTU"], "uuids": ["80fe1d0c-c3c4-4442-a467-f2975fd87ba5"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "407.46 GB"}, "dm-4": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["dm-name-docker-253:0-83120-247c996ac26c8de4c9da53d463981a78e5285f5a3be2b3a8d9d646aa5d43f410"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "65536", "model": null, "partitions": {}, "holders": [], "size": "10.00 GB"}, "dm-0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "104857600", "links": {"masters": [], "labels": [], "ids": ["dm-name-centos-root", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnSUq3u89edCoYmtN3lATh7xy5GMZr5Pgo7"], "uuids": ["ac012a2a-a7f8-425b-911a-9197e611fbfe"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "50.00 GB"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "16252928", "links": {"masters": [], "labels": [], "ids": ["dm-name-centos-swap", "dm-uuid-LVM-4fsf4CYFxxeQbCloNqEl3syUei7nCOnS5bxciorzpAwg9QYL7sMS1PoWUcb0IiXV"], "uuids": ["13900741-5a75-44f6-8848-3325135493d0"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "7.75 GB"}}, "ansible_user_uid": 0, "ansible_bios_date": "11/26/2014", "ansible_distribution": "CentOS", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_veth5af9b4f": {"macaddress": "a2:e7:6f:a1:a0:d4", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on", "rx_all": "off [fixed]", "highdma": "on", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on", "tx_vlan_stag_hw_insert": "on", "rx_vlan_stag_hw_parse": "on", "tx_gso_partial": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "on", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "on", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "on", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "on", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "on", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "on"}, "type": "ether", "hw_timestamp_filters": [], "mtu": 1500, "device": "veth5af9b4f", "promisc": true, "timestamping": ["rx_software", "software"], "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::a0e7:6fff:fea1:a0d4"}], "active": true, "speed": 10000}}}\r\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 192.168.0.196 closed.\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1563877177.7595708-149449123721876/ > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.196> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [192.168.0.196]
META: ran handlers
TASK [template] ****************************************************************************************************************************************************************************************************
task path: /Users/mhimuro/devel/project/xxx/mhimuro/diff-test/site.yml:4
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<192.168.0.196> (0, b'/root\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802 `" && echo ansible-tmp-1563877178.840123-58444523661802="` echo /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802 `" ) && sleep 0'"'"''
<192.168.0.196> (0, b'ansible-tmp-1563877178.840123-58444523661802=/root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible/modules/files/stat.py
<192.168.0.196> PUT /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpl89nf329 TO /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_stat.py
<192.168.0.196> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 '[192.168.0.196]'
<192.168.0.196> (0, b'sftp> put /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpl89nf329 /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_stat.py\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpl89nf329\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_stat.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:8068\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 8068 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/ /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_stat.py && sleep 0'"'"''
<192.168.0.196> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 -tt 192.168.0.196 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_stat.py && sleep 0'"'"''
<192.168.0.196> (0, b'\r\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/root/dummy.txt", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "", "woth": false, "isreg": true, "device_type": 0, "mtime": 1563871385.1164613, "block_size": 4096, "inode": 201591273, "isgid": false, "size": 6, "executable": false, "isuid": false, "readable": true, "version": "889946615", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "/root/dummy.txt", "xusr": false, "atime": 1563871388.064355, "isdir": false, "ctime": 1563871385.1404603, "isblk": false, "wgrp": false, "checksum": "9591818c07e900db7e1e0bc4b884c945e6a61b24", "dev": 64768, "roth": true, "isfifo": false, "mode": "0644", "xgrp": false, "rusr": true, "attributes": []}, "changed": false}\r\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 192.168.0.196 closed.\r\n')
Using module file /Users/mhimuro/devel/homebrew/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible/modules/files/file.py
<192.168.0.196> PUT /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmprpshex0g TO /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_file.py
<192.168.0.196> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 '[192.168.0.196]'
<192.168.0.196> (0, b'sftp> put /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmprpshex0g /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_file.py\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmprpshex0g\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_file.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:12803\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 12803 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/ /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_file.py && sleep 0'"'"''
<192.168.0.196> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 -tt 192.168.0.196 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/AnsiballZ_file.py && sleep 0'"'"''
<192.168.0.196> (1, b'\r\n{"msg": "argument _diff_peek is of type <type \'bool\'> and we were unable to convert to str: Quote the entire value to ensure it does not change.", "failed": true, "exception": "WARNING: The below traceback may *not* be related to the actual failure.\\n File \\"/tmp/ansible_file_payload_eqV_MW/ansible_file_payload.zip/ansible/module_utils/basic.py\\", line 1780, in _check_argument_types\\n param[k] = type_checker(value)\\n File \\"/tmp/ansible_file_payload_eqV_MW/ansible_file_payload.zip/ansible/module_utils/basic.py\\", line 1631, in _check_type_str\\n raise TypeError(to_native(msg))\\n", "invocation": {"module_args": {"force": false, "recurse": false, "access_time_format": "%Y%m%d%H%M.%S", "_diff_peek": true, "modification_time_format": "%Y%m%d%H%M.%S", "path": "/root/dummy.txt", "follow": true}}}\r\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to 192.168.0.196 closed.\r\n')
<192.168.0.196> Failed to connect to the host via ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/mhimuro/.ssh/config
debug1: /Users/mhimuro/.ssh/config line 25: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: /etc/ssh/ssh_config line 52: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.0.196 is address
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 66322
debug3: mux_client_request_session: session request sent
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to 192.168.0.196 closed.
<192.168.0.196> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.196> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/Users/mhimuro/.ansible/cp/82c206faa0 192.168.0.196 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1563877178.840123-58444523661802/ > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.196> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/mhimuro/.ssh/config\r\ndebug1: /Users/mhimuro/.ssh/config line 25: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.0.196 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 66322\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
--- before
+++ after: /Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpjpkkggw8/dummy.txt
@@ -0,0 +1,2 @@
+hello
+world
changed: [192.168.0.196] => {
"changed": true,
"diff": [
{
"after": "hello\nworld\n",
"after_header": "/Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpjpkkggw8/dummy.txt",
"before": ""
}
],
"invocation": {
"dest": "/root/dummy.txt",
"follow": false,
"mode": null,
"module_args": {
"dest": "/root/dummy.txt",
"follow": false,
"mode": null,
"src": "/Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpjpkkggw8/dummy.txt"
},
"src": "/Users/mhimuro/.ansible/tmp/ansible-local-66383fj98ak6_/tmpjpkkggw8/dummy.txt"
}
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************************************************************************************************************************************************
192.168.0.196 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
$
```
| https://github.com/ansible/ansible/issues/59433 | https://github.com/ansible/ansible/pull/60428 | 9a51dff0b17f01bcb280a438ecfe785e5fda4541 | 9b7198d25ecf084b6a465ba445efd426022265c3 | 2019-07-23T10:39:00Z | python | 2020-01-17T21:02:28Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,414 | ["lib/ansible/executor/task_executor.py", "test/integration/targets/loops/tasks/main.yml"] | connection/shell/become vars are removed when in a loop | ##### SUMMARY
When you have a task variable defined in the task's `vars:` directive and it relates to the connection, shell, or become plugin that is used in that task it will no longer be defined if run on a loop. The variable is present for the first iteration of the loop but future ones will remove that variable causing all sorts of different behaviour.
There is an unfortunate side effect of https://github.com/ansible/ansible/pull/59024 as it just removes the variables from the task vars.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
task_executor
##### ANSIBLE VERSION
```paste below
devel
```
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### STEPS TO REPRODUCE
Run the following playbook
```yaml
---
- hosts: localhost
gather_facts: no
tasks:
- ping:
vars:
ansible_remote_tmp: /tmp/test1
with_items:
- 1
- 2
- debug:
var: ansible_remote_tmp
vars:
ansible_remote_tmp: /tmp/test1
with_items:
- 1
- 2
```
##### EXPECTED RESULTS
Both runs will use `/tmp/test1` as the remote temp directory that stores the AnsiballZ payload.
##### ACTUAL RESULTS
Only the 1st task uses `/tmp/test1` while the 2nd goes back to using the default as `ansible_remote_tmp` from the task vars is no longer defined.
```paste below
ansible-playbook 2.9.0.dev0
config file = /home/jborean/dev/ansible-tester/ansible.cfg
configured module search path = ['/home/jborean/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/jborean/dev/ansible/lib/ansible
executable location = /home/jborean/dev/ansible/bin/ansible-playbook
python version = 3.7.4 (default, Jul 10 2019, 15:18:20) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
Using /home/jborean/dev/ansible-tester/ansible.cfg as config file
host_list declined parsing /home/jborean/dev/ansible-tester/inventory.ini as it did not pass its verify_file() method
auto declined parsing /home/jborean/dev/ansible-tester/inventory.ini as it did not pass its verify_file() method
yaml declined parsing /home/jborean/dev/ansible-tester/inventory.ini as it did not pass its verify_file() method
Parsed /home/jborean/dev/ansible-tester/inventory.ini inventory source with ini plugin
PLAYBOOK: test.yml **************************************************************************************
1 plays in test.yml
PLAY [localhost] ****************************************************************************************
META: ran handlers
TASK [ping] *********************************************************************************************
task path: /home/jborean/dev/ansible-tester/test.yml:5
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: jborean
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/test1/ansible-tmp-1563847217.167148-225396898656963 `" && echo ansible-tmp-1563847217.167148-225396898656963="` echo /tmp/test1/ansible-tmp-156384
7217.167148-225396898656963 `" ) && sleep 0'
Using module file /home/jborean/dev/ansible/lib/ansible/modules/system/ping.py
<127.0.0.1> PUT /home/jborean/.ansible/tmp/ansible-local-245768n0yb3g5/tmpbf7ibfe5 TO /tmp/test1/ansible-tmp-1563847217.167148-225396898656963/AnsiballZ_ping.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /tmp/test1/ansible-tmp-1563847217.167148-225396898656963/ /tmp/test1/ansible-tmp-1563847217.167148-225396898656963/AnsiballZ_ping.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/jborean/venvs/ansible-py37/bin/python /tmp/test1/ansible-tmp-1563847217.167148-225396898656963/AnsiballZ_ping.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /tmp/test1/ansible-tmp-1563847217.167148-225396898656963/ > /dev/null 2>&1 && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'echo ~jborean && sleep 0'
ok: [localhost] => (item=1) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"data": "pong"
}
},
"item": 1,
"ping": "pong"
}
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534 `" && echo ansible-tmp-1563847217.3545752-117775520192534="` echo /home/jbore
an/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534 `" ) && sleep 0'
Using module file /home/jborean/dev/ansible/lib/ansible/modules/system/ping.py
<127.0.0.1> PUT /home/jborean/.ansible/tmp/ansible-local-245768n0yb3g5/tmpl2ss9stw TO /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534/AnsiballZ_ping.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534/ /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534/AnsiballZ_ping.py && sl
eep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/jborean/venvs/ansible-py37/bin/python /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534/AnsiballZ_ping.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/jborean/.ansible/tmp/ansible-tmp-1563847217.3545752-117775520192534/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => (item=2) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"data": "pong"
}
},
"item": 2,
"ping": "pong"
}
TASK [debug] ********************************************************************************************
task path: /home/jborean/dev/ansible-tester/test.yml:12
ok: [localhost] => (item=1) => {
"ansible_loop_var": "item",
"ansible_remote_tmp": "/tmp/test1",
"item": 1
}
ok: [localhost] => (item=2) => {
"ansible_loop_var": "item",
"ansible_remote_tmp": "VARIABLE IS NOT DEFINED!: 'ansible_remote_tmp' is undefined",
"item": 2
}
META: ran handlers
META: ran handlers
PLAY RECAP **********************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
This is because after the first loop, all task vars that are either options for the connection, shell, and become plugin for that task are removed. | https://github.com/ansible/ansible/issues/59414 | https://github.com/ansible/ansible/pull/59426 | 5a7f579d86b52754d5634fd6719882158c01ec18 | 1010363c0bebaf4ef3c34ac858d74de5ca01fc7b | 2019-07-23T02:04:07Z | python | 2019-07-24T09:35:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,409 | ["test/integration/targets/docker_container/aliases", "test/integration/targets/docker_container/tasks/tests/options.yml"] | Docker Tests are unstable on RHEL 7 and RHEL 8 | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Docker tests on RHEL 7 and RHEL 8 have recently become unstable.
To get Docker tests working on RHEL 8, we had to pin at an older version. I am not sure if that is relevant to the issue.
Here are some example test failures
https://app.shippable.com/github/ansible/ansible/runs/133180/
https://app.shippable.com/github/ansible/ansible/runs/133170/
Marked tests as unstable in #59408
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
`test/integration/targets/docker_swarm/`
`test/integration/targets/docker_config/`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.9
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59409 | https://github.com/ansible/ansible/pull/59425 | 333953117c9e2ff62ebccdbcbb5947271b88ce73 | 266d6e77a9ad2373d31bcf067d67e9dcd268f464 | 2019-07-22T22:09:42Z | python | 2019-07-23T14:20:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,405 | ["changelogs/fragments/validate-modules-change-error-codes.yaml", "docs/docsite/rst/dev_guide/testing_validate-modules.rst", "test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py", "test/lib/ansible_test/_internal/sanity/validate_modules.py", "test/lib/ansible_test/_internal/test.py", "test/sanity/ignore.txt"] | Use error codes instead of numbers in validate-modules | ### SUMMARY
Update validate-modules to report messages using named error codes like `version-added` instead of error numbers like `E305`.
This would match the behavior of other tools we use, such as pylint, which have one named error code per rule. This will also make ignore entries much easier to read.
Doing this before 2.9 is released will avoid potential backwards compatibility issues with ignore entries in collections.
##### ISSUE TYPE
Feature Idea
##### COMPONENT NAME
validate-modules
| https://github.com/ansible/ansible/issues/59405 | https://github.com/ansible/ansible/pull/60711 | af01cb114cc4225ad323c99df9fd188b1b519069 | 73248bf27d4c6094799512b95993382ea2139e72 | 2019-07-22T21:02:21Z | python | 2019-08-28T21:12:56Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,404 | ["docs/docsite/rst/network/user_guide/network_debug_troubleshooting.rst", "lib/ansible/plugins/connection/network_cli.py", "test/integration/targets/ios_command/tests/cli/error_regex.yaml", "test/units/plugins/connection/test_network_cli.py"] | IOS Terminal: "ERROR" in an IOS log message causes terminal to incorrectly parse a stderr in response to a command. | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
The word "ERROR" in an IOS log message causes terminal to parse an error. IOS_command modules doesn't register stdout, only the one line of log output with the word "Error" as stderr. Task fails.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
I'm using ios_command module, however, I believe the ios terminal plugin has the regex to parse stderr. ansible/lib/ansible/plugins/terminal/ios.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
Using 2.7.7. Difficult to copy and paste due to locked down environment.
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
See above.
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Ubuntu 16.04.6
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Use ios_command module to show logs in buffer on the device. Register the output as a variable. Debug the contents of the variable. If a line of logs contains the word "ERROR", the task will fail and stdout will be empty.
Actual log lines that have triggered this:
%IPSEC-3-REPLAY_ERROR: IPSec SA recieves anti-replay error, DP Handle 549, src_addr x.x.x.x, dest_addr y.y.y.y, SPI...
ISAKMP-ERROR: (0):Failed to find peer index node to update peer_info_list
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- tasks
ios_command:
commands: show logging
register: logs
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Lines of logs registered in variable.stdout.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Variable has no stdout, only stderr. Stderr is only the one line of logs that contained the word "ERROR".
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59404 | https://github.com/ansible/ansible/pull/60086 | 446dcb7c963a3b3cd72410b572f4adb062b56a8e | 49736b6b27af24d57229f98bf5b76b414a9ff7a4 | 2019-07-22T19:18:34Z | python | 2019-08-19T13:26:20Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,400 | ["changelogs/fragments/fix_inv_refresh.yml", "lib/ansible/inventory/manager.py", "lib/ansible/plugins/strategy/__init__.py", "test/integration/targets/meta_tasks/inventory_new.yml", "test/integration/targets/meta_tasks/inventory_old.yml", "test/integration/targets/meta_tasks/inventory_refresh.yml", "test/integration/targets/meta_tasks/refresh.yml", "test/integration/targets/meta_tasks/refresh_preserve_dynamic.yml", "test/integration/targets/meta_tasks/runme.sh"] | Preserve add_host/group_by data on inventory refresh | ##### SUMMARY
Since `add_host` and `group_by` actions only modify the runtime inventory, hosts/groups/vars added by them don't survive a `meta: refresh_inventory` call (since that call completely clears the runtime inventory).
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
InventoryManager
##### ADDITIONAL INFORMATION
After some internal discussion, the general consensus seemed to be that this behavior is an undesirable default. The `add_host` and `group_by` actions should manage a more persistent state independent of the runtime inventory, then apply their changes to the running inventory. When a `meta: refresh_inventory` occurs, the normal dynamic inventory clear/refresh should happen, then reapply the add_host/group_by state. This should probably be the default behavior, but a config switch or a different `meta` action (or an arg to it) to emulate the current behavior could also be created if necessary.
| https://github.com/ansible/ansible/issues/59400 | https://github.com/ansible/ansible/pull/77944 | 52c8613a04ab2d1df117ec6b3cadfa6e0a3e02cd | 89c6547892460f04a41f9c94e19f11c10513a63c | 2019-07-22T18:27:39Z | python | 2022-06-06T22:08:43Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,391 | ["changelogs/fragments/59395_meraki_content_filtering.yaml", "lib/ansible/modules/network/meraki/meraki_content_filtering.py"] | Meraki_content_filtering not working with net_id | ##### SUMMARY
I am trying to apply Content Filtering rules using meraki_content_filter and when I use net_id with a valid network ID, I get an error fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "No network found with the name None", "response": "OK (unknown bytes)", "status": 200}
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
meraki_content_filter
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.1
config file = /home/amestruetemper.com/mwinslow/.ansible.cfg
configured module search path = [u'/home/amestruetemper.com/mwinslow/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_HOST_LIST(/home/amestruetemper.com/mwinslow/.ansible.cfg) = [u'/home/amestruetemper.com/mwinslow/ansible/inventory']
DEFAULT_PRIVATE_KEY_FILE(/home/amestruetemper.com/mwinslow/.ansible.cfg) = /etc/ansible/keys/id_rsa
DEFAULT_ROLES_PATH(/home/amestruetemper.com/mwinslow/.ansible.cfg) = [u'/home/amestruetemper.com/mwinslow/ansible/roles']
DEFAULT_STDOUT_CALLBACK(/home/amestruetemper.com/mwinslow/.ansible.cfg) = skippy
HOST_KEY_CHECKING(/home/amestruetemper.com/mwinslow/.ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
CentOS Linux release 7.6.1810 (Core)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Create a playbook following the doc but replace net_name with net_id
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: meraki test
hosts: localhost
tasks:
- name: Set Content Filtering
meraki_content_filtering:
auth_key: VALID_KEY
org_id: VALID_ORG
net_id: N_VALID_NET_ID
state: present
category_list_size: top sites
blocked_categories:
- "Adult and Pornography"
- "Alcohol and Tobacco"
- "Illegal"
delegate_to: localhost
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
It should add content filtering rules to the test network.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
It fails because it is looking for net_name. If I change net_id to net_name and put the network name in, it will work. I need to use net_id so that if a network name changes it won't affect the script.
<!--- Paste verbatim command output between quotes -->
```paste below
PLAY [meraki test] ************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************
ok: [localhost]
TASK [Set Content Filtering] **************************************************************************************************************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "No network found with the name None", "response": "OK (unknown bytes)", "status": 200}
PLAY RECAP ********************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/59391 | https://github.com/ansible/ansible/pull/59395 | 9fafbe3ab2e5d9d6802753fb0006b2726d6adb3b | 71ea16995ae536b7073fe4c3ab2e8f3a126ebc28 | 2019-07-22T14:42:59Z | python | 2019-12-18T17:10:16Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,386 | ["changelogs/fragments/57894-combine-filter-rework.yml", "docs/docsite/rst/user_guide/playbooks_filters.rst", "lib/ansible/plugins/filter/core.py", "lib/ansible/utils/vars.py", "test/integration/targets/filter_core/tasks/main.yml", "test/units/utils/test_vars.py"] | Deep merge of dictionaries | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
The [__combine__ filter of Ansible](https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries) is limited if it comes to nested elements that contain lists. The __recursive__ functionality only does merge dict elements but not nested list elements.
* The current implementation will simply take the second list as result.
* The expected results would be to merge both lists into a single list.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
Jinjia2 integration
##### ADDITIONAL INFORMATION
Example:
```yaml
---
- hosts: localhost
gather_facts: false
vars:
foo:
list:
- a
- b
dict:
foo: 1
bar:
list:
- c
- d
dict:
bar: 2
tasks:
- debug:
msg: '{{ {} | combine(foo, bar, recursive=True) }}'
```
Expected:
```yaml
{
"dict": {
"bar": 2,
"foo": 1
},
"list": [
"a",
"b",
"c",
"d"
]
}
```
Actual:
```yaml
{
"dict": {
"bar": 2,
"foo": 1
},
"list": [
"c",
"d"
]
}
```
| https://github.com/ansible/ansible/issues/59386 | https://github.com/ansible/ansible/pull/57894 | 33f136292b06a14c98fa4c05bdb6409a5e84e352 | 53e043b5febd30f258a233f51b180a543300151b | 2019-07-22T13:50:47Z | python | 2020-02-12T21:40:36Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,361 | ["lib/ansible/modules/cloud/vmware/vmware_export_ovf.py"] | VMware: vmware_export_ovf timeout when exporting VM with large disk | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
If target VM has big disk file, exporting to ovf will timeout in 10 minutes.
"timeout" can be set as a module parameter to let user set the timeout value for different scenarios.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
vmware_export_ovf
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.1
config file = /root/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
VM can be exported.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Timeout occurred.
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59361 | https://github.com/ansible/ansible/pull/60062 | 279617a94ebf2fbca2c548d1f2fa776b7b261d5a | d5bff7a87f0d257cc71310e3b3441f1b7628d3ce | 2019-07-22T02:00:14Z | python | 2019-08-07T09:05:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,353 | ["lib/ansible/modules/database/mongodb/mongodb_user.py"] | Close MongoDB client connection in mongodb_user when done | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Explain the problem briefly below -->
Thanks for the great software :)
When setting up a MongoDB database server, one will generally want to create a root user and then create a second, more limited app user. Here is my attempt at this:
```yaml
- name: Add MongoDB admin user
mongodb_user:
database: "admin"
name: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
roles: "root"
- name: Copy config file
copy:
src: mongod.conf
dest: /etc/mongod.conf
owner: root
group: root
mode: 0644
- name: Create /etc/security/limits.d/mongod.conf
copy:
src: security-mongod.conf
dest: /etc/security/limits.d/mongod.conf
owner: root
group: root
mode: 0644
- name: Restart MongoDB
service:
name: mongod
state: restarted
- name: Add MongoDB app user
mongodb_user:
login_database: "admin"
login_user: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
login_password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
name: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/app-user/username', region=region) }}"
password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/app-user/password', decrypt=true, region=region) }}"
roles:
- db: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/name', region=region) }}"
role: "readWrite"
- name: Reboot
reboot:
```
Creating the admin user succeeds, but once I enable authorization, restart MongoDB, and attempt user creation, I receive the following error every time I run the playbook:
```
TASK [mongodb : Add MongoDB admin user] ****************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: pymongo.errors.OperationFailure: command createUser requires authentication
fatal: [3.222.242.183]: FAILED! => {"changed": false, "msg": "Unable to add or update user: command createUser requires authentication"}
to retry, use: --limit @/root/repo/modules/database/provision.retry
```
However, if I comment out admin user creation
```yaml
# - name: Add MongoDB admin user
# mongodb_user:
# database: "admin"
# name: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
# password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
# roles: "root"
```
and run the playbook again, app user creation succeeds.
Further, I was able to workaround this issue by rebooting the server prior to app user creation:
```yaml
- name: Add MongoDB admin user
mongodb_user:
login_database: "admin"
login_user: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
login_password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
database: "admin"
name: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
update_password: "on_create"
roles: "root"
- name: Copy config file
copy:
src: mongod.conf
dest: /etc/mongod.conf
owner: root
group: root
mode: 0644
- name: Create /etc/security/limits.d/mongod.conf
copy:
src: security-mongod.conf
dest: /etc/security/limits.d/mongod.conf
owner: root
group: root
mode: 0644
# Reboot before adding the app user to MongoDB or authentication will fail probably due to connection pooling
# with pymongo which is a problem because authorization was enabled after adding the admin account.
- name: Reboot
reboot:
- name: Add MongoDB app user
mongodb_user:
login_database: "admin"
login_user: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/username', region=region) }}"
login_password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/admin-user/password', decrypt=true, region=region) }}"
database: "admin"
name: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/app-user/username', region=region) }}"
password: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/app-user/password', decrypt=true, region=region) }}"
update_password: "on_create"
roles:
- db: "{{ lookup('aws_ssm', '/app-name/test/database/mongodb/name', region=region) }}"
role: "readWrite"
```
I believe the new connection details related to creating the app user are ignored. Please see [this discussion](https://github.com/MongoEngine/mongoengine/issues/2010#issuecomment-487317501) for details. If this is true, calling `client.close()` at [the end of the mongodb_user](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/database/mongodb/mongodb_user.py#L438) as done [at the end of postgresql_table](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/database/postgresql/postgresql_table.py#L580).
Closing the connection would likely help because once authorization is turned on, authentication is required, so no connection reuse or pooling would occur.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
mongodb_user
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
2.8.2
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
DEFAULT_HOST_LIST(/Users/chad/development/projects/app-name/infrastructure/modules/database/ansible.cfg) = ['/Users/chad/development/projects/app-name/infrastructure/modules/database/hosts']
DEFAULT_TRANSPORT(/Users/chad/development/projects/app-name/infrastructure/modules/database/ansible.cfg) = ssh
HOST_KEY_CHECKING(/Users/chad/development/projects/app-name/infrastructure/modules/database/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
MacOS Mojave 10.14 (18A391)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
Described above.
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Creating a second user account should not fail.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Creating the second user account failed.
<!--- Paste verbatim command output between quotes -->
| https://github.com/ansible/ansible/issues/59353 | https://github.com/ansible/ansible/pull/65665 | c9b38bd74e4562b01b3a4b67b3b5b61d486faeaa | 25181e1b7021430f495f249dc3b9adf37ae3afd3 | 2019-07-21T17:38:23Z | python | 2020-02-15T14:10:27Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,351 | ["lib/ansible/modules/windows/win_firewall_rule.py"] | Docs for win_firewall_rule (protocol is mandatory if localport is specified) | ##### SUMMARY
win_firewall_rule docs do not specify that protocol is mandatory when specifying a port. This is not obvious, in my case i wanted a rule to allow both TCP and UDP.
MSFT docs for New-NetFirewallRule specifies:
"If the Protocol parameter value is TCP or UDP, then the acceptable values for this parameter are- etc.." something similar in the ansible docs would make sense
https://github.com/ansible/ansible/issues/31576 makes clear a change to docs would be helpful.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
win_firewall_rule
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.2
config file = /Users/redacted/projects/projectname/ansible/ansible.cfg
configured module search path = ['/Users/redacted/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.4 (default, Jul 9 2019, 18:13:23) [Clang 10.0.1 (clang-1001.0.46.4)]
```
##### CONFIGURATION
Not relevant
##### OS / ENVIRONMENT
Server 2019 Core
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```
- name: New firewall rule allow HTTPS
win_firewall_rule:
name: name (withBrackets)
description: description (withBrackets)
localport: 443
action: allow
direction: in
enabled: yes
state: present
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Firewall rule created for both UDP and TCP
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
task path: /redacted/file.yml:27
Using module file /usr/local/Cellar/ansible/2.8.2/libexec/lib/python3.7/site-packages/ansible/modules/windows/win_firewall_rule.ps1
Pipelining is enabled.
<redacted> ESTABLISH WINRM CONNECTION FOR USER: redacted on PORT redacted TO redacted
EXEC (via pipeline wrapper)
The full traceback is:
Value does not fall within the expected range.
At line:162 char:59
+ ... port -and $localport -ne "any") { $new_rule.LocalPorts = $localport }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException
fatal: [hostname1]: FAILED! => {
"changed": false,
"msg": "Value does not fall within the expected range."
}
```
| https://github.com/ansible/ansible/issues/59351 | https://github.com/ansible/ansible/pull/59467 | 7b4ce9e4aee8f2d131ea0176456054b3ecbd4002 | 092e5515d12ff2ad4b47aa2f940ff399809b8ec3 | 2019-07-21T08:52:04Z | python | 2019-07-23T19:37:08Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,337 | ["changelogs/fragments/win_reg_stat-hku.yaml", "lib/ansible/modules/windows/win_reg_stat.ps1", "test/integration/targets/win_reg_stat/tasks/tests.yml"] | win_reg_stat fails when registry key is in HKEY_USERS\.DEFAULT hive | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
win_reg_stat module fails when running against keys in the HKEY_USERS\.DEFAULT hive. All other hives (HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE\*, etc) appear to be working fine, however.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_reg_stat module
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.1
config file = /home/admin/ansible-src/com/winrmtesting/ansible.cfg
configured module search path = [u'/home/admin/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /users/ansible/lib/python2.7/site-packages/ansible
executable location = /users/ansible/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_CALLBACK_WHITELIST(/home/admin/ansible-src/com/winrmtesting/ansible.cfg) = [u'profile_tasks']
DEFAULT_HOST_LIST(/home/admin/ansible-src/com/winrmtesting/ansible.cfg) = [u'/home/admin/ansible-src/com/winrmtesting/inventory/hosts']
HOST_KEY_CHECKING(env: ANSIBLE_HOST_KEY_CHECKING) = False
```
##### OS / ENVIRONMENT
target OS: Windows Server 2016 Datacenter
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Run the win_reg_stat module against any key in the HKEY_USERS\.DEFAULT hive
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: HKU:\.DEFAULT\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications
win_reg_stat:
path: 'HKU:\.DEFAULT\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
name: NoToastApplicationNotificationOnLockScreen
register: pushnotifications_regkey_stat
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
ok: [172.17.176.59] => {
"pushnotifications_regkey_stat": {
"changed": false,
"exists": true,
"failed": false,
"raw_value": 1,
"type": "REG_DWORD",
"value": 1
}
}
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
The full traceback is:
You cannot call a method on a null-valued expression.
At line:122 char:5
+ $registry_hive.Dispose()
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvokeMethodOnNull
ScriptStackTrace:
at <ScriptBlock>, <No file>: line 122
fatal: [172.17.176.59]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: You cannot call a method on a null-valued expression."
}
```
| https://github.com/ansible/ansible/issues/59337 | https://github.com/ansible/ansible/pull/59359 | 74598b212ececc01293e638cf933e70bcfb2497e | 2f2b10642388992d5b858989efcc0b69f83e22bf | 2019-07-20T14:36:25Z | python | 2019-07-21T23:12:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,326 | ["lib/ansible/modules/network/junos/junos_ping.py", "lib/ansible/plugins/action/junos.py"] | junos_ping fail when using netconf connection plugin | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
junos_ping module fails when using the netconf connection plugin, however when using the network_cli it works with no problem.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
junos_ping module
##### ANSIBLE VERSION
```
ansible 2.8.1
config file = /vagrant/net_automation_cookbook/ch4_junos/ansible.cfg
configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/vagrant/.local/lib/python3.5/site-packages/ansible
executable location = /home/vagrant/.local/bin/ansible
python version = 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
```
DEFAULT_GATHERING(/vagrant/net_automation_cookbook/ch4_junos/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/vagrant/net_automation_cookbook/ch4_junos/ansible.cfg) = ['/vagrant/net_automation_cookbook/ch4_junos/hosts']
HOST_KEY_CHECKING(/vagrant/net_automation_cookbook/ch4_junos/ansible.cfg) = False
RETRY_FILES_ENABLED(/vagrant/net_automation_cookbook/ch4_junos/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
test against Junos 14.1R4.8 and JUNOS 17.1R1.8
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
when using the netconf plugin the junos_ping module fails with the below faliure output
<!--- Paste example playbooks or commands between quotes below -->
```
- name: "Validate Core Reachability"
hosts: junos
vars:
lo_ip:
mxpe01: 10.100.1.1/32
mxpe02: 10.100.1.2/32
tasks:
- name: "Ping Across All Loopback Interfaces"
junos_ping:
dest: "{{ item.value.split('/')[0] }}"
interface: lo0.0
size: 512
with_dict: "{{lo_ip}}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
when using the network_cli plugin the playbook works as expected
- name: "Validate Core Reachability"
hosts: junos
vars:
lo_ip:
mxpe01: 10.100.1.1/32
mxpe02: 10.100.1.2/32
tasks:
- name: "Ping Across All Loopback Interfaces"
junos_ping:
dest: "{{ item.value.split('/')[0] }}"
interface: lo0.0
size: 512
with_dict: "{{lo_ip}}"
vars:
ansible_connection: network_cli
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
failed: [mxpe02] (item={'key': 'mxpe02', 'value': '10.100.1.2/32'}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "mxpe02", "value": "10.100.1.2/32"}, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_junos_ping_payload_ee3oycmt/ansible_junos_ping_payload.zip/ansible/module_utils/network/common/netconf.py\", line 83, in parse_rpc_error\n File \"src/lxml/etree.pyx\", line 3222, in lxml.etree.fromstring\n File \"src/lxml/parser.pxi\", line 1877, in lxml.etree._parseMemoryDocument\n File \"src/lxml/parser.pxi\", line 1765, in lxml.etree._parseDoc\n File \"src/lxml/parser.pxi\", line 1127, in lxml.etree._BaseParser._parseDoc\n File \"src/lxml/parser.pxi\", line 601, in lxml.etree._ParserContext._handleParseResultDoc\n File \"src/lxml/parser.pxi\", line 711, in lxml.etree._handleParseResult\n File \"src/lxml/parser.pxi\", line 640, in lxml.etree._raiseParseError\n File \"<string>\", line 1\nlxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/vagrant/.ansible/tmp/ansible-local-6820j09yeqgo/ansible-tmp-1563527319.039324-40487203490951/AnsiballZ_junos_ping.py\", line 114, in <module>\n _ansiballz_main()\n File \"/home/vagrant/.ansible/tmp/ansible-local-6820j09yeqgo/ansible-tmp-1563527319.039324-40487203490951/AnsiballZ_junos_ping.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/vagrant/.ansible/tmp/ansible-local-6820j09yeqgo/ansible-tmp-1563527319.039324-40487203490951/AnsiballZ_junos_ping.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/usr/lib/python3.5/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib/python3.5/imp.py\", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 626, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 665, in exec_module\n File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\n File \"/tmp/ansible_junos_ping_payload_ee3oycmt/__main__.py\", line 231, in <module>\n File \"/tmp/ansible_junos_ping_payload_ee3oycmt/__main__.py\", line 159, in main\n File \"/tmp/ansible_junos_ping_payload_ee3oycmt/ansible_junos_ping_payload.zip/ansible/module_utils/network/common/netconf.py\", line 76, in __rpc__\n File \"/tmp/ansible_junos_ping_payload_ee3oycmt/ansible_junos_ping_payload.zip/ansible/module_utils/network/common/netconf.py\", line 108, in parse_rpc_error\nansible.module_utils.connection.ConnectionError: b\"Start tag expected, '<' not found, line 1, column 1 (<string>, line 1)\"\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: b"Start tag expected, '<' not found, line 1, column 1 (<string>, line 1)"
```
| https://github.com/ansible/ansible/issues/59326 | https://github.com/ansible/ansible/pull/59534 | f2b0bfd4aaa3c71be4c0fb8f566451936aeca629 | 119f2b873a863d05d38a29599ade2ac09f8c6f01 | 2019-07-19T22:13:43Z | python | 2019-07-24T17:41:27Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,320 | ["lib/ansible/config/base.yml", "lib/ansible/galaxy/api.py", "lib/ansible/galaxy/token.py"] | specify ansible-galaxy token file directory | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
`ansible-galaxy collection install ...` will create a file to save the galaxy token in `~/.ansible_galaxy`. This causes problems when the users home dir isn't writeable and potential problems in a multi-tenant shared-user environment.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
ansible-galaxy collection
##### ADDITIONAL INFORMATION
I would like a knob to be able to tell `ansible-galaxy` not to create that file or a knob to specify the directory where the file can be created. Below is the traceback I get when my home dir doesn't allow write access.
##### Steps to recreate
`HOME=/ ansible-galaxy -vvv collection install chrismeyersfsu.tower_modules -p /tmp/here`
```
ansible-galaxy 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-galaxy
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
ERROR! Unexpected Exception, this is probably a bug: [Errno 13] Permission denied: '//.ansible_galaxy'
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible-galaxy", line 111, in <module>
exit_code = cli.run()
File "/usr/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 267, in run
self.api = GalaxyAPI(self.galaxy)
File "/usr/lib/python2.7/site-packages/ansible/galaxy/api.py", line 65, in __init__
self.token = GalaxyToken()
File "/usr/lib/python2.7/site-packages/ansible/galaxy/token.py", line 39, in __init__
self.config = yaml.safe_load(self.__open_config_for_read())
File "/usr/lib/python2.7/site-packages/ansible/galaxy/token.py", line 48, in __open_config_for_read
f = open(self.file, 'w')
IOError: [Errno 13] Permission denied: '//.ansible_galaxy'
```
| https://github.com/ansible/ansible/issues/59320 | https://github.com/ansible/ansible/pull/59387 | 3f784caed1aa63d2a5a3e9df20c4606372910c19 | a8d01cf2a24505c8c9620d9a10771c591208b922 | 2019-07-19T19:43:36Z | python | 2019-08-13T23:47:40Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,317 | ["lib/ansible/module_utils/facts/hardware/freebsd.py", "lib/ansible/module_utils/facts/hardware/linux.py"] | Ansible facts include moterboard serial number | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
<!--- Describe the new feature/improvement briefly below -->
Please include a baseboard/motherboard serial number and Motherboard product name in ansible gather_facts
This can be added to facts as similar to other items are being discovered with
/sys/class/dmi/id/board_name
/sys/class/dmi/id/board_serial
/sys/class/dmi/id/board_vendor
/sys/class/dmi/id/board_version
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
facts
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
This is especially useful for hardware from commodity vendors such as SuperMicro and many of hardware doesn't have the proper product serial number or custom build with various local vendors.
Another case, many of product which is based on blade/chassis model shares the same serial number for chassis and product but the only different thing to distinguish them is motherboard serial number. it would be a great benefit to add in ansible core rather someone using custom facts for it.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can also paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/59317 | https://github.com/ansible/ansible/pull/68756 | 04edd77c4273b321867c0f08d6ff2b67dacfcf2d | 9b43a5791606a3f9985cb47cc998e16615a9ba88 | 2019-07-19T18:22:08Z | python | 2020-04-09T05:33:11Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,306 | ["changelogs/fragments/async-race-condition.yml", "lib/ansible/modules/async_wrapper.py"] | Unwanted errors when running multiple async tasks locally | ##### SUMMARY
An task using `async` and `poll` can fail intermittently due to an implementation flaw.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/modules/utilities/logic/async_wrapper.py
##### ANSIBLE VERSION
```paste below
ansible --version
ansible 2.9.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
```paste below
[root@awx awx_devel]# ansible-config dump --only-changed
[root@awx awx_devel]#
```
##### OS / ENVIRONMENT
CentOS
##### STEPS TO REPRODUCE
Run this playbook:
https://github.com/ansible/test-playbooks/blob/master/async_tasks.yml
Against 5 hosts, where all host have hostvars
```yaml
ansible_host: 127.0.0.1
ansible_connection: local
```
This part of the playbook should be sufficient to reproduce error.
```yaml
---
- hosts: all
gather_facts: false
tasks:
- name: Poll a sleep
shell: "sleep 10"
async: 30
poll: 5
```
##### EXPECTED RESULTS
This should never error. There is no valid reason I can think of that this should ever error.
##### ACTUAL RESULTS
Extremely intermittent error on system that has good specs, but is running other servers and stuff while running the playbook. Output:
```paste below
Identity added: /tmp/awx_138_ji4bfrnh/artifacts/138/ssh_key_data (/tmp/awx_138_ji4bfrnh/artifacts/138/ssh_key_data)
SSH password:
BECOME password[defaults to SSH password]:
PLAY [all] *********************************************************************
TASK [Poll a sleep] ************************************************************
fatal: [HostGovernmentEffect94G]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": true, "module_stderr": "", "module_stdout": "{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"started\\": 1, \\"_ansible_suppress_tmpdir_delete\\": true, \\"finished\\": 0, \\"results_file\\": \\"/tmp/.ansible_async/478922372899.115\\", \\"ansible_job_id\\": \\"478922372899.115\\"}\\n", "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error", "rc": 0}
fatal: [HostBoneWorkingWX3]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": true, "module_stderr": "", "module_stdout": "{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async\\", \\"failed\\": 1}\\n{\\"started\\": 1, \\"_ansible_suppress_tmpdir_delete\\": true, \\"finished\\": 0, \\"results_file\\": \\"/tmp/.ansible_async/263580704685.118\\", \\"ansible_job_id\\": \\"263580704685.118\\"}\\n", "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error", "rc": 0}
changed: [HostDreamObjectZEF]
changed: [HostShineInsideyaq]
changed: [HostQueenRecordUPH]
TASK [debug] *******************************************************************
ok: [HostQueenRecordUPH] => {
"msg": "I'm a debug message."
}
ok: [HostDreamObjectZEF] => {
"msg": "I'm a debug message."
}
ok: [HostShineInsideyaq] => {
"msg": "I'm a debug message."
}
TASK [Fire and forget a slow command] ******************************************
changed: [HostShineInsideyaq]
changed: [HostDreamObjectZEF]
changed: [HostQueenRecordUPH]
TASK [debug] *******************************************************************
ok: [HostQueenRecordUPH] => {
"msg": "I'm another debug message."
}
ok: [HostShineInsideyaq] => {
"msg": "I'm another debug message."
}
ok: [HostDreamObjectZEF] => {
"msg": "I'm another debug message."
}
TASK [Examine slow command] ****************************************************
FAILED - RETRYING: Examine slow command (20 retries left).
FAILED - RETRYING: Examine slow command (20 retries left).
FAILED - RETRYING: Examine slow command (20 retries left).
FAILED - RETRYING: Examine slow command (19 retries left).
FAILED - RETRYING: Examine slow command (19 retries left).
FAILED - RETRYING: Examine slow command (19 retries left).
FAILED - RETRYING: Examine slow command (18 retries left).
FAILED - RETRYING: Examine slow command (18 retries left).
FAILED - RETRYING: Examine slow command (18 retries left).
changed: [HostQueenRecordUPH]
changed: [HostShineInsideyaq]
changed: [HostDreamObjectZEF]
TASK [Fire and forget a slow reversal] *****************************************
changed: [HostDreamObjectZEF]
changed: [HostQueenRecordUPH]
changed: [HostShineInsideyaq]
TASK [debug] *******************************************************************
ok: [HostDreamObjectZEF] => {
"msg": "I'm yet another debug message."
}
ok: [HostShineInsideyaq] => {
"msg": "I'm yet another debug message."
}
ok: [HostQueenRecordUPH] => {
"msg": "I'm yet another debug message."
}
TASK [Examine slow reversal] ***************************************************
FAILED - RETRYING: Examine slow reversal (20 retries left).
FAILED - RETRYING: Examine slow reversal (20 retries left).
FAILED - RETRYING: Examine slow reversal (20 retries left).
FAILED - RETRYING: Examine slow reversal (19 retries left).
FAILED - RETRYING: Examine slow reversal (19 retries left).
FAILED - RETRYING: Examine slow reversal (19 retries left).
changed: [HostQueenRecordUPH]
changed: [HostShineInsideyaq]
changed: [HostDreamObjectZEF]
PLAY RECAP *********************************************************************
HostBoneWorkingWX3 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
HostDreamObjectZEF : ok=8 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
HostGovernmentEffect94G : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
HostQueenRecordUPH : ok=8 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
HostShineInsideyaq : ok=8 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
This hits the code:
https://github.com/ansible/ansible/blob/b2e992cecd93fbedc260d86fcb25bc39191e0b5b/lib/ansible/modules/utilities/logic/async_wrapper.py#L235-L242
The blanket catching of `Exception` with no reporting makes this extremely hard to diagnose. Debug options will not help the user here. I had to make a code change:
```diff
diff --git a/lib/ansible/modules/utilities/logic/async_wrapper.py b/lib/ansible/modules/utilities/logic/async_wrapper.py
index 586438ff13..183d857033 100644
--- a/lib/ansible/modules/utilities/logic/async_wrapper.py
+++ b/lib/ansible/modules/utilities/logic/async_wrapper.py
@@ -235,10 +235,10 @@ if __name__ == '__main__':
if not os.path.exists(jobdir):
try:
os.makedirs(jobdir)
- except Exception:
+ except Exception as e:
print(json.dumps({
"failed": 1,
- "msg": "could not create: %s" % jobdir
+ "msg": "could not create: %s: %s" % (jobdir, e)
}))
# immediately exit this process, leaving an orphaned process
# running which immediately forks a supervisory timing process
```
With that, I was able to get this more helpful output:
```
TASK [Poll a sleep] ************************************************************
fatal: [HostQueenRecordUPH]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": true, "module_stderr": "", "module_stdout": "{\\"msg\\": \\"could not create: /tmp/.ansible_async: [Errno 17] File exists: '/tmp/.ansible_async'\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async: [Errno 17] File exists: '/tmp/.ansible_async'\\", \\"failed\\": 1}\\n{\\"msg\\": \\"could not create: /tmp/.ansible_async: [Errno 17] File exists: '/tmp/.ansible_async'\\", \\"failed\\": 1}\\n{\\"started\\": 1, \\"_ansible_suppress_tmpdir_delete\\": true, \\"finished\\": 0, \\"results_file\\": \\"/tmp/.ansible_async/265831391750.118\\", \\"ansible_job_id\\": \\"265831391750.118\\"}\\n", "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error", "rc": 0}
changed: [HostShineInsideyaq]
changed: [HostBoneWorkingWX3]
changed: [HostDreamObjectZEF]
changed: [HostGovernmentEffect94G]
```
I have also found, unsurprisingly, that running multiple versions of this playbook run simultaneously increases the likelihood and number of hosts experiencing this bug.
To sum up what this suggests:
- The check for the async folder is non-atomic, which bodes poorly for running locally with >1 process
- While the job folder name is properly unique, its parent folder (the async folder) is global, and the non-atomic check + creation will cause multiple processes to trip over each other | https://github.com/ansible/ansible/issues/59306 | https://github.com/ansible/ansible/pull/72069 | 618d1a3871ea1b50c60702e486ceae6537ad1d93 | c9fa1d0e7ef981d0869d5d7a6c06245299d8ec65 | 2019-07-19T15:33:17Z | python | 2020-10-19T19:05:19Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,299 | ["docs/docsite/rst/porting_guides/porting_guide_2.9.rst", "lib/ansible/module_utils/service_now.py", "lib/ansible/modules/notification/snow_record.py", "lib/ansible/modules/notification/snow_record_find.py", "lib/ansible/plugins/doc_fragments/service_now.py"] | snow_record: 'NoneType' object has no attribute 'generate_token' | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
With addition of OAuthClient in snow_* modules, I am getting following error -
```
Traceback (most recent call last):
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 125, in <module>
_ansiballz_main()
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 117, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 51, in invoke_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 339, in <module>
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 335, in main
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 205, in run_module
File "/tmp/ansible_snow_record_payload_brr2thzt/ansible_snow_record_payload.zip/ansible/module_utils/service_now.py", line 57, in login
AttributeError: 'NoneType' object has no attribute 'generate_token'
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.9
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
Nothing specific
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
MacOS Mojave
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: localhost
tasks:
- snow_record:
instance: "instance_id"
password: "password"
username: admin
data:
short_description: "Description"
priority: 2
state: present
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Playbook should be successful.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
Traceback (most recent call last):
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 125, in <module>
_ansiballz_main()
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 117, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/Users/akasurde/.ansible/tmp/ansible-tmp-1563543375.7458959-114877035679906/AnsiballZ_snow_record.py", line 51, in invoke_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 339, in <module>
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 335, in main
File "/tmp/ansible_snow_record_payload_brr2thzt/__main__.py", line 205, in run_module
File "/tmp/ansible_snow_record_payload_brr2thzt/ansible_snow_record_payload.zip/ansible/module_utils/service_now.py", line 57, in login
AttributeError: 'NoneType' object has no attribute 'generate_token'
```
| https://github.com/ansible/ansible/issues/59299 | https://github.com/ansible/ansible/pull/59315 | 59e647910dd77f0d09380e09f878f6a6fe4f4eda | 6531819172ca46e14746a4d9b0c845a46b2b82a6 | 2019-07-19T13:38:17Z | python | 2019-07-22T14:01:04Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,253 | ["changelogs/fragments/60388-openssl_privatekey-format.yml", "lib/ansible/module_utils/crypto.py", "lib/ansible/modules/crypto/openssl_privatekey.py", "test/integration/targets/openssl_privatekey/tasks/impl.yml", "test/integration/targets/openssl_privatekey/tasks/main.yml", "test/integration/targets/openssl_privatekey/tests/validate.yml"] | Allow to select openssl_privatekey format | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
Allow to specify a new "format" parameter in "openssl_privatekey". Today the output format is decided by a very simple heuristic which requires further commands to work properly.
I need, for example, to generate a RSA private key but in PKCS8 format. The current heuristic uses OpenSSH format for RSA keys and only uses PKCS8 for Ed25519 and similar. This makes me use a "command" with "openssl" to convert the generated key, which leads to idempotency problems and unnecessary complexity.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
openssl_privatekey
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
The current heuristic should be kept unless overwritten by user.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
openssl_privatekey:
path: /etc/ssl/private/ansible.com.pem
format: pkcs8
```
The values allowed are `pkcs1`, `raw` and `pkcs8`
<!--- HINT: You can also paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/59253 | https://github.com/ansible/ansible/pull/60388 | e3c7e356568c3254a14440d7b832cc2cf32a2b14 | d00d0c81b379f4232421ec01a104b3ce1c6e2820 | 2019-07-18T15:29:13Z | python | 2019-10-17T08:40:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,237 | ["changelogs/fragments/win_share-Implement-append-paramtere-for-access-rules.yml", "lib/ansible/modules/windows/win_share.ps1", "lib/ansible/modules/windows/win_share.py", "test/integration/targets/win_share/tasks/tests.yml"] | win_share: remove all other permissions of a share | <!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
I have a playbook the user: App_Urb on a share EAI. Everything is ok, but If I have another user on that share, playbook remove it
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_share
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.1
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
[14:07:41]root@vsrvkermit playbook]# ansible-config dump --only-changed
DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', u'/datas/ansible/roles']
```
##### OS / ENVIRONMENT
Target is Windows 2012 R2
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
Case original:
```
C:\Windows\system32>net share EAI
Share name EAI
Path D:\Partage\EAI
Remark Repertoire EAI
Maximum users No limit
Users
Caching Manual caching of documents
Permission VSRVQSRM\Appli_Urba, FULL
PAM\EXP_TRT, READ
```
I manually added PAM\EXP_TRT with READ rules.
I run playbook like this:
```
- name: Add share EAI
win_share:
name: EAI
description: Repertoire EAI
path: D:\Partage\EAI
list: no
full: Appli_Urba
when: ansible_distribution_version is version('6.2','>=')
```
This remove the created user
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Keep original user, just add Appli_Urb if not exist
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
C:\Windows\system32>net share EAI
Share name EAI
Path D:\Partage\EAI
Remark Repertoire EAI
Maximum users No limit
Users
Caching Manual caching of documents
Permission VSRVQSRM\Appli_Urba, FULL
```
| https://github.com/ansible/ansible/issues/59237 | https://github.com/ansible/ansible/pull/59469 | ed54b9b4418f895f0809bffb5f491553836ec634 | 584824f560dd88b4f35a4632e082e5945b0495bd | 2019-07-18T12:12:04Z | python | 2019-12-04T04:16:10Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 59,233 | ["changelogs/fragments/docker_image_etc_hosts.yml", "lib/ansible/modules/cloud/docker/docker_image.py", "test/integration/targets/docker_image/files/EtcHostsDockerfile", "test/integration/targets/docker_image/tasks/tests/options.yml"] | docker_image: is missing etc_hosts (extra_hosts argument from python-docker) | ##### SUMMARY
docker_image module is missing etc_hosts parameter even if this is documented and accepted by docker.build() as of https://docker-py.readthedocs.io/en/stable/images.html
The same argument is accepted by docker_run but the lack of support here prevents us from building images when extra_hosts is needed.
I mention that the only reason why I propose using `etc_hosts` is in order to keep it in sync with already existing implementation from `docker_container` module which accepts `etc_hosts` which is translated to `extra_hosts` on docker-python-api.
I would personally prefer to use the same names as docker-api but this would require changing docker_container too.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
docker_image
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible-devel
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/59233 | https://github.com/ansible/ansible/pull/59540 | 30c1d9754dbfe58a27103b809f2a388ac949c316 | 7c6fb57b7d2dedb732fe7d41131c929ccb917a84 | 2019-07-18T11:12:50Z | python | 2019-07-26T20:39:21Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.