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 | 63,910 | ["changelogs/fragments/64436-openssh_keypair-add-password-protected-key-check.yml", "lib/ansible/modules/crypto/openssh_keypair.py", "test/integration/targets/openssh_keypair/tasks/main.yml", "test/integration/targets/openssh_keypair/tests/validate.yml"] | openssh_keypair handles encrypted key files poorly | <!--- 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
`openssh_keypair` handles encrypted key files poorly.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
openssh_keypair
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /home/thom/git/dotfiles-ansible/ansible.cfg
configured module search path = ['/home/thom/.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, Oct 4 2019, 06:57:26) [GCC 9.2.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/home/thom/git/dotfiles-ansible/ansible.cfg) = True
DEFAULT_HOST_LIST(/home/thom/git/dotfiles-ansible/ansible.cfg) = ['/home/thom/git/dotfiles-ansible/hosts']
DEFAULT_MANAGED_STR(/home/thom/git/dotfiles-ansible/ansible.cfg) = This file is managed by Ansible.%n
template: {file}
date: %Y-%m-%d %H:%M:%S
user: {uid}
host: {host}
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Arch Linux
```OpenSSH_8.1p1, OpenSSL 1.1.1d 10 Sep 2019```
##### 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: Obtain keyfile from this machine
openssh_keypair:
path: "/tmp/sshkey"
type: ed25519
```
I'm using ed25519 because it's independent of `size`; not sure if it also happens with eg. RSA.
0. Generate ``/tmp/sshkey`` using ``ssh-keygen -t ed25519 -f /tmp/sshkey -N password``
1. Run the above playbook, observe it marks it as `changed`.
2. Observe ``/tmp/sshkey.pub`` is now empty.
3. Run it again, it's `changed` again
4. It has now replaced the SSH key and the public key is now correct.
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
1. Either give me an error about encrypted `.ssh` files already existing or properly replace it.
| https://github.com/ansible/ansible/issues/63910 | https://github.com/ansible/ansible/pull/64436 | a0b8b85fa5ab512f0ece4c660aba754fc85edc9e | da73bbd73c94b6bd5cc459f2e813b11014e44a7e | 2019-10-24T15:17:25Z | python | 2019-12-02T07:12:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,907 | ["lib/ansible/modules/monitoring/zabbix/zabbix_template.py", "test/integration/targets/zabbix_template/aliases", "test/integration/targets/zabbix_template/defaults/main.yml", "test/integration/targets/zabbix_template/meta/main.yml", "test/integration/targets/zabbix_template/tasks/main.yml"] | Zabbix: Need the _info module of zabbix_template? | ##### SUMMARY
It is a suggestion, the zabbix_template module has a dump option, but I think it needs to be implemented with `_info`.
**reason**
The zabbix_user_group module has been pointed out to go to the `_info` module instead of using dump.
https://github.com/ansible/ansible/pull/58051#pullrequestreview-304208011
The development document also states that modules that return general information need to be `_info`.
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_checklist.html?highlight=_info%20_facts#contributing-to-ansible-objective-requirements
If need zabbix_template_info module, I created a zabbix_templet_info module, hence I can PR.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
zabbix_template
thanks | https://github.com/ansible/ansible/issues/63907 | https://github.com/ansible/ansible/pull/65236 | eb423ecec0a51b5f2c2ac54abf8d07bede9f3fdf | 2242c385b25cc6fdcaaa53560c7f56f819bafe23 | 2019-10-24T14:40:39Z | python | 2019-11-26T11:18:55Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,905 | ["lib/ansible/modules/cloud/vmware/vmware_host_auto_start.py", "test/integration/targets/vmware_host_auto_start/aliases", "test/integration/targets/vmware_host_auto_start/tasks/esxi_auto_start_ops.yml", "test/integration/targets/vmware_host_auto_start/tasks/main.yml", "test/integration/targets/vmware_host_auto_start/tasks/reset_auto_start_config.yml", "test/integration/targets/vmware_host_auto_start/tasks/vcenter_auto_start_ops.yml"] | VMware: guest autostartup parameters on VMware | <!--- 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 -->
guest autostartup parameters on VMware
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
vmware_host
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
Hello,
I trying to find a way to change startup parameters for VMs.
Does it exist such module? I'm speaking about this.

<!--- 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/63905 | https://github.com/ansible/ansible/pull/64605 | 9a8d0cf0063d1fbd2ee93342675dfb39e882d16a | 8301ad47c3fdb13f10ef6a184f3a80f0f985a46d | 2019-10-24T13:58:15Z | python | 2019-11-16T03:16:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,903 | ["changelogs/fragments/63903-ufw.yaml", "lib/ansible/modules/system/ufw.py", "test/integration/targets/ufw/tasks/main.yml", "test/integration/targets/ufw/tasks/tests/interface.yml", "test/units/modules/system/test_ufw.py"] | ufw module does not support specifying both in & out interfaces for forwarding rules | ##### SUMMARY
Currently the module ufw does not allow to specify two network interfaces for forwarding rules (rule='allow' routed='yes').
What I'd like to achieve is this rule:
`ufw route allow in on ethX out on ethY to 10.0.0.0/8 from 192.168.0.0/24`
To my knowledge, the best one can do is pick one interface and decide to flag it with "in" or "out" traffic using the `direction` property. So the equivalent of either:
`ufw route allow in on ethX to 10.0.0.0/8 from 192.168.0.0/24` or
`ufw route allow out on ethY to 10.0.0.0/8 from 192.168.0.0/24`
Is there a mechanism to provide both interfaces to the module?
##### ISSUE TYPE
- Feature request
##### COMPONENT NAME
module ufw
##### ANSIBLE VERSION
```
ansible 2.8.2
config file = /mnt/c/dev/sandboxes/ansible/ansible.cfg
configured module search path = [u'/home/me/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/me/virtualenvs/ansible/local/lib/python2.7/site-packages/ansible
executable location = /home/me/virtualenvs/ansible/bin/ansible
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
```
ANSIBLE_PIPELINING(/mnt/c/dev/sandboxes/ansible/ansible.cfg) = True
DEFAULT_ROLES_PATH(/mnt/c/dev/sandboxes/ansible/ansible.cfg) = [u'/mnt/c/dev/sandboxes/ansible/.imported_roles', u'/mnt/c/dev/sandboxes/ansible/roles']
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /home/me/.vault_pass.txt
```
##### OS / ENVIRONMENT
Ubuntu Linux 18.04 LTS
##### STEPS TO REPRODUCE
Cannot really (re)produce, we just can't express it. There is a single parameter `interface` and we would need 2. (Or a convention to pass a tuple of interfaces into `interface`, comma separated?)
##### EXPECTED RESULTS
Being able to specify an "in" interface and an "out" interface.
In the following snippet, only the "out" interface can be mentioned.
```yaml
changed: [testvm1] => (item={u'direction': u'out', u'to_ip': u'0.0.0.0/0', u'interface': u'ethY', u'route': u'yes', u'from_ip': u'192.168.0.0/24', u'rule': u'allow'}) => {
"ansible_loop_var": "item",
"changed": true,
"commands": [
"/usr/sbin/ufw status verbose",
"/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules",
"/usr/sbin/ufw --version",
"/usr/sbin/ufw route allow out on ethY from 192.168.0.0/24 to 0.0.0.0/0",
"/usr/sbin/ufw status verbose",
"/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules"
],
"invocation": {
"module_args": {
"app": null,
"comment": null,
"default": null,
"delete": false,
"direction": "out",
"from_ip": "192.168.0.0/24",
"from_port": null,
"insert": null,
"insert_relative_to": "zero",
"interface": "ethY",
"log": false,
"logging": null,
"proto": null,
"route": true,
"rule": "allow",
"state": null,
"to_ip": "0.0.0.0/0",
"to_port": null
}
},
"item": {
"direction": "out",
"from_ip": "192.168.0.0/24",
"interface": "ethY",
"route": "yes",
"rule": "allow",
"to_ip": "0.0.0.0/0"
},
"msg": "Status: active\nLogging: off\nDefault: deny (incoming), allow (outgoing), deny (routed)\nNew profiles: skip\n\nTo Action From\n-- ------ ----\n10.0.0.0/8 on ethY ALLOW FWD 10.254.33.0/24"
}
```
##### ACTUAL RESULTS
We must choose which interface we want to specify as there is only one `interface` parameter. (In my case, I will specify the output interface preferably over the incoming interface and count on the address range to be selective enough but YMVV)
| https://github.com/ansible/ansible/issues/63903 | https://github.com/ansible/ansible/pull/65382 | 03dce68227cb5732ef463943cfb2bd0e09d5d4ed | a0b8b85fa5ab512f0ece4c660aba754fc85edc9e | 2019-10-24T12:42:48Z | python | 2019-12-02T07:01:44Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,869 | ["hacking/aws_config/testing_policies/compute-policy.json", "lib/ansible/modules/cloud/amazon/lightsail.py", "test/integration/targets/lightsail/defaults/main.yml", "test/integration/targets/lightsail/library/lightsail_keypair.py", "test/integration/targets/lightsail/tasks/main.yml"] | aws lightsail does not support wait: yes on create | ##### SUMMARY
In #63770 it was found that the `wait` specified in the module docs does not apply to create operations. Wait functions are only defined for `delete_instance`, `restart_instance`, and `startstop_instance`.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lightsail
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
$ ansible --version
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/jill/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/jill/src/ansible/lib/ansible
executable location = /home/jill/src/ansible/bin/ansible
python version = 2.7.15+ (default, Oct 7 2019, 17:39:04) [GCC 7.4.0]
```
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### STEPS TO REPRODUCE
```
- name: Start the instance
lightsail:
name: "{{ instance_name }}"
state: running
wait: yes
register: result
- assert:
that:
- result.changed == True
- result.instance.state.name == 'running'
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
test pass
##### ACTUAL RESULTS
assertion failed
| https://github.com/ansible/ansible/issues/63869 | https://github.com/ansible/ansible/pull/65275 | 02e7c5a19f1e864d0c86b04a424bdea51fd5cb25 | 37ce55fd79c54d5b33f39fc1c50da382753bf6cb | 2019-10-23T16:32:04Z | python | 2019-12-02T20:12:44Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,844 | ["lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py"] | azure_rm_virtualmachine: VM OS disk policy gets updated even when not specified | ##### SUMMARY
If you happen to use the __azure_rm_virtualmachine__ module to manage a VM powerstate, if no os_disk_caching attribute is not specified, the module sets *ReadOnly* as default value.
Unfortunately, if the already existing VM has a different type of OS disk cache, e.g. *ReadWrite*, the module attempts to update the VM whereas, as os_disk_caching has not been specified, it is not expected.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
* lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py
##### ANSIBLE VERSION
```paste below
ansible 2.8.5
config file = /home/***/ansible/ansible_dev.cfg
configured module search path = [u'/home/***/ansible/library']
ansible python module location = /home/***/ansible/.venv/lib/python2.7/site-packages/ansible
executable location = /home/***/ansible/.venv/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### CONFIGURATION
```paste below
DEFAULT_BECOME_METHOD(/home/***/ansible/ansible_dev.cfg) = sudo
DEFAULT_BECOME_USER(/home/***/ansible/ansible_dev.cfg) = root
DEFAULT_GATHER_TIMEOUT(/home/***/ansible/ansible_dev.cfg) = 30
DEFAULT_HOST_LIST(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/inventory/azure-dev']
DEFAULT_LOG_PATH(/home/***/ansible/ansible_dev.cfg) = /home/***/ansible.log
DEFAULT_MODULE_PATH(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/library']
DEFAULT_ROLES_PATH(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/roles']
DEFAULT_VAULT_IDENTITY_LIST(/home/***/ansible/ansible_dev.cfg) = []
HOST_KEY_CHECKING(/home/***/ansible/ansible_dev.cfg) = False
INVENTORY_ENABLED(/home/***/ansible/ansible_dev.cfg) = [u'yaml', u'azure_rm', u'script']
RETRY_FILES_ENABLED(/home/***/ansible/ansible_dev.cfg) = False
```
##### OS / ENVIRONMENT
Controller: RHEL 7.4
Target VM: RHEL 7.4
##### STEPS TO REPRODUCE
1. Create VM with "ReadWrite" as disk cache type
1. Try to power it off:
```yaml
- name: Stop Azure VM
azure_rm_virtualmachine:
name: "{{ vm_name }}"
started: no
state: present
resource_group: "***"
subscription_id: "***"
tenant: "***"
client_id: "***"
secret: "***"
```
##### EXPECTED RESULTS
The VM is stopped and the OS disk caching is not updated.
##### ACTUAL RESULTS
The VM OS Disk caching is updated and the VM is stopped.
When debugging the code, there is a difference appened to the __self.differences__ list:
* OS Disk caching
The workaround right now is to specify the __os_disk_caching__ attribute with the OS disk caching type that matches the one of the VM
| https://github.com/ansible/ansible/issues/63844 | https://github.com/ansible/ansible/pull/65601 | ee5822597038ab02f2587081366f8a146d6f227d | a168e73713f896b75487ce22306490de9ed2b3ce | 2019-10-23T08:36:33Z | python | 2019-12-19T07:48:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,828 | ["changelogs/fragments/win_iis_website-restarted.yaml", "lib/ansible/modules/windows/win_iis_website.ps1"] | win_iis_website: state=restarted does not actually restart the website | ##### SUMMARY
win_iis_website module does not restart IIS website when using 'state=restarted' parameter
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_iis_website
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.7.9
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/amesh/.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 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
same issue still present in newer versions according to source code
##### 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 OS: Windows Server 2016
##### STEPS TO REPRODUCE
1. Have a Windows Server with IIS and 'dummy_website' created in it.
2. Run the following task in a playbook:
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: "Restart the IIS Site"
win_iis_website:
name : "dummy_website"
state: "restarted"
tags: "restart"
```
##### EXPECTED RESULTS
The website is restarted.
##### ACTUAL RESULTS
The website is not restarted, though Ansible claims the change occurred:
<!--- Paste verbatim command output between quotes -->
```paste below
changed: [iis1.example.com] => {
"changed": true,
"site": {
"ApplicationPool": "dummy_app_pool",
"Bindings": [
"10.101.101.101:80:"
],
"ID": 2,
"Name": "dummy_website",
"PhysicalPath": "C:\\inetpub\\vhosts\\dummy_website",
"State": "Started"
}
}
```
In the module source code we can see that state=restarted condition is only handled in the spot, where Start-Website PowerShell cmdlet is invoked:
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_iis_website.ps1
```paste below
# Set run state
if (($state -eq 'stopped') -and ($site.State -eq 'Started'))
{
Stop-Website -Name $name -ErrorAction Stop
$result.changed = $true
}
if ((($state -eq 'started') -and ($site.State -eq 'Stopped')) -or ($state -eq 'restarted'))
{
Start-Website -Name $name -ErrorAction Stop
$result.changed = $true
}
```
I don't believe this is the intended behavior, 'restarted' state should also be included the condition to invoke Stop-Website. | https://github.com/ansible/ansible/issues/63828 | https://github.com/ansible/ansible/pull/63829 | 95d613f3ab376af8c06399d256d931c6c00c21d6 | bd9a0b6700d2f54185d84a772a21605e67f7e077 | 2019-10-23T03:31:41Z | python | 2019-11-13T00:24:25Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,803 | ["lib/ansible/modules/cloud/amazon/aws_batch_job_queue.py"] | Doc errors in aws_batch_job_queue | ##### SUMMARY
Documentation on `aws_batch_job_queue` has bugs:
* module is `aws_batch_job_queue`, not `batch_job_queue`
* the `batch_job_queue_action` variable is never registered
* the `debug` task uses the old YAML style
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
`aws_batch_job_queue`
##### ANSIBLE VERSION
```
ansible 2.8.6
config file = None
configured module search path = ['/home/major/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/major/.pyenv/versions/3.7.5/envs/venv-3.7.5/lib/python3.7/site-packages/ansible
executable location = /home/major/.pyenv/versions/venv-3.7.5/bin/ansible
python version = 3.7.5 (default, Oct 21 2019, 08:25:03) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]
```
##### CONFIGURATION
```
[ no output ]
```
##### OS / ENVIRONMENT
Fedora 30 with Python 3.7.5 (from pyenv)
##### ADDITIONAL INFORMATION
No extra information.
| https://github.com/ansible/ansible/issues/63803 | https://github.com/ansible/ansible/pull/63804 | 14eedb2956a304d582da63e57b7663c61eb7a7a4 | 4048fb4da72cd0ab132f66f5ecc7d45347861f40 | 2019-10-22T16:20:52Z | python | 2019-10-29T14:24:21Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,777 | ["lib/ansible/module_utils/network/ios/facts/l2_interfaces/l2_interfaces.py"] | ios_facts l2_interfaces resource only returning Gig interfaces | <!--- 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 -->
I have been using 2.9.0rc4 to try out the new resource models for ios_facts and the l2_interfaces resource only parses Gigabit interfaces and completely ignores other interface (Fast (100 Mbps), Ten, Twenty, Forty, Hundred etc.)
Line 89 in the module says
`if intf.lower().startswith('gi'):`
If I remove the if statement I get all interfaces including Vlan interfaces which definitily shouldn't be parsed. I would like to discuss if this should be replaced with a whitelist which needs to be kept updated or a blacklist to exclude unwanted interfaces. I can open a PR later to fix it when a decision has been made how to filter
##### 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.9.0rc4
config file = /home/dennis/.ansible.cfg
configured module search path = [u'/home/dennis/.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.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_FORKS(/home/dennis/.ansible.cfg) = 4
DEFAULT_STDOUT_CALLBACK(/home/dennis/.ansible.cfg) = yaml
HOST_KEY_CHECKING(/home/dennis/.ansible.cfg) = False
INTERPRETER_PYTHON(/home/dennis/.ansible.cfg) = auto_legacy_silent
INVENTORY_ENABLED(/home/dennis/.ansible.cfg) = [u'yaml']
RETRY_FILES_ENABLED(/home/dennis/.ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Host: Debian via WSL
Switch: Cisco C2960 running IOS 15.0(2)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
ansible -m ios_facts switch_hostname -a "gather_network_resources=l2_interfaces"
<!--- Paste example playbooks or commands between quotes below -->
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
```yaml
ansible_facts:
ansible_net_gather_network_resources:
- l2_interfaces
ansible_net_gather_subset: []
ansible_network_resources:
l2_interfaces:
- name: FastEthernet0/1
- name: FastEthernet0/2
- name: FastEthernet0/3
- access:
vlan: 569
name: FastEthernet0/4
- name: FastEthernet0/5
- name: FastEthernet0/6
- name: FastEthernet0/7
- name: FastEthernet0/8
- name: FastEthernet0/9
- name: FastEthernet0/10
- name: FastEthernet0/11
- name: FastEthernet0/12
- name: FastEthernet0/13
- name: FastEthernet0/14
- name: FastEthernet0/15
- name: FastEthernet0/16
- name: FastEthernet0/17
- name: FastEthernet0/18
- name: FastEthernet0/19
- name: FastEthernet0/20
- name: FastEthernet0/21
- name: FastEthernet0/22
- name: FastEthernet0/23
- name: FastEthernet0/24
- name: FastEthernet0/25
- name: FastEthernet0/26
- name: FastEthernet0/27
- name: FastEthernet0/28
- name: FastEthernet0/29
- name: FastEthernet0/30
- name: FastEthernet0/31
- name: FastEthernet0/32
- name: FastEthernet0/33
- name: FastEthernet0/34
- name: FastEthernet0/35
- name: FastEthernet0/36
- name: FastEthernet0/37
- name: FastEthernet0/38
- access:
vlan: 3033
name: FastEthernet0/39
- name: FastEthernet0/40
- name: FastEthernet0/41
- name: FastEthernet0/42
- name: FastEthernet0/43
- name: FastEthernet0/44
- name: FastEthernet0/45
- name: FastEthernet0/46
- name: FastEthernet0/47
- name: FastEthernet0/48
- name: GigabitEthernet0/1
- name: GigabitEthernet0/2
discovered_interpreter_python: /usr/bin/python
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
```yaml
ansible_facts:
ansible_net_gather_network_resources:
- l2_interfaces
ansible_net_gather_subset: []
ansible_network_resources:
l2_interfaces:
- name: GigabitEthernet0/1
- name: GigabitEthernet0/2
discovered_interpreter_python: /usr/bin/python
``` | https://github.com/ansible/ansible/issues/63777 | https://github.com/ansible/ansible/pull/63779 | 3e4ae4225688c02190a00cd1818136d8e09f3a16 | d620a209a5935aff190e74057ad4e30fa9dcefb4 | 2019-10-22T10:51:41Z | python | 2019-10-23T15:43:37Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,761 | ["lib/ansible/module_utils/network/ios/config/interfaces/interfaces.py"] | ios_interfaces: non-existing virtual/loopback interfaces not getting confiured | ##### SUMMARY
ios_interfaces module is not confguring non-existing loopback and virtual interfaces . This is observed for state='merged','overridden','replaced'
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ios_interfaces.py
##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/gosriniv/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/gosriniv/ansible/lib/ansible
executable location = /home/gosriniv/ansible/bin/ansible
python version = 3.6.5 (default, Sep 4 2019, 12:23:33) [GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
```
##### OS / ENVIRONMENT
ios
##### STEPS TO REPRODUCE
```tasks:
- name: Merge given interface attributes with device configuration
ios_interfaces:
config:
- name: loopback200
description: 'Configured by Ansible'
enabled: True
state: merged
```
##### EXPECTED RESULTS
The loopback interface should be configured in the device
##### ACTUAL RESULTS
ok: [10.8.38.75] => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"before": [
{
"enabled": true,
"name": "loopback100"
},
{
"enabled": true,
"name": "Port-channel10"
},
{
"enabled": true,
"name": "Port-channel40"
},
{
"enabled": true,
"name": "GigabitEthernet0/0"
},
{
"enabled": true,
"name": "GigabitEthernet0/1"
},
{
"enabled": true,
"name": "GigabitEthernet0/2"
}
],
"changed": false,
"commands": [],
"invocation": {
"module_args": {
"config": [
{
"description": "Configured by Ansible",
"duplex": null,
"enabled": true,
"mtu": null,
"name": "loopback200",
"speed": null
}
],
"state": "merged"
}
}
} | https://github.com/ansible/ansible/issues/63761 | https://github.com/ansible/ansible/pull/63901 | 548fa65ac6db1f3b24944a106fa01872362fea17 | be1bcc745019613c722c73c1562c11215b146dd3 | 2019-10-21T18:34:08Z | python | 2019-10-31T12:39:03Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,756 | ["changelogs/fragments/lineinfile-backrefs-match-object-type.yaml", "lib/ansible/modules/files/lineinfile.py", "test/integration/targets/lineinfile/tasks/main.yml"] | bug in lineinfile when using it with backrefs | <!--- 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
Bug introduced by #63194.
Use of lineinfile module along with backrefs fails.
Relevant part of code:
```
336 if index[0] != -1:
337 if backrefs:
338 b_new_line = m.expand(b_line)
339 else:
340 # Don't do backref expansion if not asked.
341 b_new_line = b_line
```
Fixed it by removing lines 338-340, but additional testing required.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/modules/files/lineinfile.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.6
config file = /home/p/.config/ansible/config.ini
configured module search path = ['/home/p/.config/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.4 (default, Sep 3 2019, 10:27:32) [Clang 8.0.1 (tags/RELEASE_801/final)]
```
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```
lineinfile:
path: "{{ config_elasticsearch }}"
regexp: "^#node.name:"
line: "node.name: {{ elasticsearch_node }}"
backrefs: yes
```
<!--- 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 -->
`
File \"/usr/local/lib/python3.7/imp.py\", line 169, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File \"<frozen importlib._bootstrap>\", line 630, in _exec\r\n File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\r\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n File \"/tmp/ansible_lineinfile_payload_3mda11zl/__main__.py\", line 573, in <module>\r\n File \"/tmp/ansible_lineinfile_payload_3mda11zl/__main__.py\", line 564, in main\r\n File \"/tmp/ansible_lineinfile_payload_3mda11zl/__main__.py\", line 338, in present\r\nAttributeError: 'bool' object has no attribute 'expand'\r\n
`
| https://github.com/ansible/ansible/issues/63756 | https://github.com/ansible/ansible/pull/63763 | f6c85b738016f803142c57c9256c2af554333d8e | 29d4d318a53940ea38d716d9218291d1e2703ab4 | 2019-10-21T15:03:40Z | python | 2019-10-22T14:01:11Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,721 | ["lib/ansible/plugins/inventory/azure_rm.py"] | Inventory plugin azure_rm: incomplete inventory results if no primary ipConfiguration field | ##### SUMMARY
When using azure_rm inventory plug-in, given Azure subscription, the dynamic inventory results in an incomplete list of VMs, compared to the one that can be obtained in portal.azure.com or via Azure CLI.
The issue is mainly due to a parsing error that occurs in azure_rm.py. The code expects the 'primary' field to exist in the __nic_model['ipConfigurations'][X]['properties']__ dict. In our existing fleet of Azure VMs, some VMs do not have a primary ipConfiguration set. More precisely, that field is set to 'null', not 'True' or 'False'.
Example:
1. Using Azure cli, dump the ipConfiguration of VM vm01 that has the 'primary' field set to 'true':
```bash
az network nic ip-config list --subscription MySubscription -g MyRG --nic-name vm01nic
[
{
"applicationGatewayBackendAddressPools": null,
"applicationSecurityGroups": null,
"etag": "W/\"***\"",
"id": "/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/networkInterfaces/vm01nic/ipConfigurations/ipconfig1",
"loadBalancerBackendAddressPools": null,
"loadBalancerInboundNatRules": null,
"name": "ipconfig1",
"primary": true,
"privateIpAddress": "***",
"privateIpAddressVersion": "IPv4",
"privateIpAllocationMethod": "Static",
"provisioningState": "Succeeded",
"publicIpAddress": null,
"resourceGroup": "***",
"subnet": {
"addressPrefix": null,
"etag": null,
"id": "/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/virtualNetworks/***/subnets/***",
"ipConfigurations": null,
"name": null,
"networkSecurityGroup": null,
"provisioningState": null,
"resourceGroup": "***",
"resourceNavigationLinks": null,
"routeTable": null,
"serviceEndpoints": null
},
"type": "Microsoft.Network/networkInterfaces/ipConfigurations"
}
]
```
2. Using Azure cli, dump the ipConfiguration of VM vm02 that does not have a boolean value for the 'primary' field:
```bash
az network nic ip-config list --subscription MySubscription -g MyRG --nic-name vm02nic
[
{
"applicationGatewayBackendAddressPools": null,
"applicationSecurityGroups": null,
"etag": "W/\"***\"",
"id": "/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/networkInterfaces/vm02nic/ipConfigurations/ipconfig1",
"loadBalancerBackendAddressPools": null,
"loadBalancerInboundNatRules": null,
"name": "ipconfig1",
"primary": null,
"privateIpAddress": "***",
"privateIpAddressVersion": "IPv4",
"privateIpAllocationMethod": "Static",
"provisioningState": "Succeeded",
"publicIpAddress": null,
"resourceGroup": "***",
"subnet": {
"addressPrefix": null,
"etag": null,
"id": "/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/virtualNetworks/***/subnets/***",
"ipConfigurations": null,
"name": null,
"networkSecurityGroup": null,
"provisioningState": null,
"resourceGroup": "***",
"resourceNavigationLinks": null,
"routeTable": null,
"serviceEndpoints": null
},
"type": "Microsoft.Network/networkInterfaces/ipConfigurations"
}
]
```
In the second example, because of the 'null' value, that field is later removed from the __nic_model__ dict., causing a python error while fetching the inventory.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/plugins/inventory/azure_rm.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /home/***/ansible/ansible_dev.cfg
configured module search path = [u'/home/***/ansible/library']
ansible python module location = /home/***/ansible/.venv/lib/python2.7/site-packages/ansible
executable location = /home/***/ansible/.venv/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_BECOME_METHOD(/home/***/ansible/ansible_dev.cfg) = sudo
DEFAULT_BECOME_USER(/home/***/ansible/ansible_dev.cfg) = root
DEFAULT_GATHER_TIMEOUT(/home/***/ansible/ansible_dev.cfg) = 30
DEFAULT_HOST_LIST(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/inventory/azure-dev']
DEFAULT_LOG_PATH(/home/***/ansible/ansible_dev.cfg) = /home/***/ansible.log
DEFAULT_MODULE_PATH(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/library']
DEFAULT_ROLES_PATH(/home/***/ansible/ansible_dev.cfg) = [u'/home/***/ansible/roles']
DEFAULT_VAULT_IDENTITY_LIST(/home/***/ansible/ansible_dev.cfg) = ***
HOST_KEY_CHECKING(/home/***/ansible/ansible_dev.cfg) = False
INVENTORY_ENABLED(/home/***/ansible/ansible_dev.cfg) = [u'yaml', u'azure_rm', u'script']
RETRY_FILES_ENABLED(/home/***/ansible/ansible_dev.cfg) = False
```
##### OS / ENVIRONMENT
Ansible controller on RHEL 7.4
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
1. Use a resource group with one VM that is correctly retrieved via the azure_rm plugin.
1. In that resource group, create another VM with at least one NIC but with no primary ipConfiguration (I don't know whether it is still possible to do so but in our existing fleet of VMs, some do not have any NIC with a primary ipConfiguration)
1. Relaunch the dynamic inventory.
##### EXPECTED RESULTS
All resource group VMs are retrieved.
##### ACTUAL RESULTS
No VM shows up
| https://github.com/ansible/ansible/issues/63721 | https://github.com/ansible/ansible/pull/63722 | 4c589661c2add45023f2bff9203e0c4e11efe5f6 | 4b240a5d740c20c4821eb944e2df37446a4b0dd2 | 2019-10-20T12:35:00Z | python | 2019-11-27T07:53:05Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,684 | ["changelogs/fragments/lineinfile-use-correct-index-value.yaml", "lib/ansible/modules/files/lineinfile.py", "test/integration/targets/lineinfile/tasks/main.yml"] | lineinfile crash on 2.8.6 | ##### SUMMARY
With Ansible 2.8.4 the following task worked successfully:
```
- name: "Configure index-url path."
lineinfile:
path: "{{ pydistutils_cfg_path }}"
insertafter: "\\[easy_install\\]"
regexp: "^\\s*index-url\\s+=.*$"
line: "index-url = {{ nexus_pypi }}"
```
as soon as systems started install Ansible 2.8.6 and attempting to run the same task we started seeing errors like:
```
TASK [install_python : Configure index-url path.] ******************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range
fatal: [localhost]: FAILED! => {
"changed": false,
"rc": 1
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
Traceback (most recent call last):
File "/home/testu18/.ansible/tmp/ansible-tmp-1571405045.44-114822878223722/AnsiballZ_lineinfile.py", line 114, in <module>
_ansiballz_main()
File "/home/testu18/.ansible/tmp/ansible-tmp-1571405045.44-114822878223722/AnsiballZ_lineinfile.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/testu18/.ansible/tmp/ansible-tmp-1571405045.44-114822878223722/AnsiballZ_lineinfile.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_lineinfile_payload_iwtwv4dj/__main__.py", line 567, in <module>
File "/tmp/ansible_lineinfile_payload_iwtwv4dj/__main__.py", line 558, in main
File "/tmp/ansible_lineinfile_payload_iwtwv4dj/__main__.py", line 413, in present
IndexError: list index out of range
```
These look very similar to the #63077 but not quite the same and in a different module.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lineinfile
##### ANSIBLE VERSION
```
testu18@testu18:~$ ansible --version
ansible 2.8.6
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/testu18/.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, Oct 7 2019, 17:39:04) [GCC 7.4.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
testu18@testu18:~$ ansible-config dump --only-changed
testu18@testu18:~$
```
##### OS / ENVIRONMENT
Ubuntu 18.04 and Mac os 10.14.6
##### 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:
- lineinfile:
path: "/tmp/somefile"
line: "[easy_install]"
create: yes
- lineinfile:
path: "/tmp/somefile"
insertafter: "\\[easy_install\\]"
regexp: "^\\s*index-url\\s+=.*$"
line: "index-url = https://example.org"
```
##### EXPECTED RESULTS
```
IT-USA-25903:test csalch$ ansible-playbook test_playbook.yml
[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'
PLAY [localhost] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [lineinfile] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost]
TASK [lineinfile] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=3 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
testu18@testu18:~$ ansible-playbook ./test_playbook.yml -vvvv
ansible-playbook 2.8.6
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/testu18/.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-playbook
python version = 2.7.15+ (default, Oct 7 2019, 17:39:04) [GCC 7.4.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
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
Parsed /etc/ansible/hosts inventory source with ini plugin
[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/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: test_playbook.yml **********************************************************************************************************************************************************************************************************************************************************************************************************************************************
Positional arguments: ./test_playbook.yml
become_method: sudo
inventory: (u'/etc/ansible/hosts',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
timeout: 10
1 plays in ./test_playbook.yml
PLAY [localhost] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /home/testu18/test_playbook.yml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: testu18
<127.0.0.1> EXEC /bin/sh -c 'echo ~testu18 && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789 `" && echo ansible-tmp-1571406272.54-212983197612789="` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789 `" ) && sleep 0'
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /home/testu18/.ansible/tmp/ansible-local-11042z9TmO6/tmpkcGtMZ TO /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789/ /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/testu18/.ansible/tmp/ansible-tmp-1571406272.54-212983197612789/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [lineinfile] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /home/testu18/test_playbook.yml:4
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: testu18
<127.0.0.1> EXEC /bin/sh -c 'echo ~testu18 && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449 `" && echo ansible-tmp-1571406273.37-22574126030449="` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449 `" ) && sleep 0'
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
<127.0.0.1> PUT /home/testu18/.ansible/tmp/ansible-local-11042z9TmO6/tmp_GotGN TO /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449/AnsiballZ_lineinfile.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449/ /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449/AnsiballZ_lineinfile.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449/AnsiballZ_lineinfile.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/testu18/.ansible/tmp/ansible-tmp-1571406273.37-22574126030449/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
"backup": "",
"changed": false,
"diff": [
{
"after": "",
"after_header": "/tmp/somefile (content)",
"before": "",
"before_header": "/tmp/somefile (content)"
},
{
"after_header": "/tmp/somefile (file attributes)",
"before_header": "/tmp/somefile (file attributes)"
}
],
"invocation": {
"module_args": {
"attributes": null,
"backrefs": false,
"backup": false,
"content": null,
"create": true,
"delimiter": null,
"directory_mode": null,
"firstmatch": false,
"follow": false,
"force": null,
"group": null,
"insertafter": null,
"insertbefore": null,
"line": "[easy_install]",
"mode": null,
"owner": null,
"path": "/tmp/somefile",
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "present",
"unsafe_writes": null,
"validate": null
}
},
"msg": ""
}
TASK [lineinfile] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
task path: /home/testu18/test_playbook.yml:9
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: testu18
<127.0.0.1> EXEC /bin/sh -c 'echo ~testu18 && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258 `" && echo ansible-tmp-1571406273.68-75225899370258="` echo /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258 `" ) && sleep 0'
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
<127.0.0.1> PUT /home/testu18/.ansible/tmp/ansible-local-11042z9TmO6/tmp34bPPv TO /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/ /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python2 /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py", line 114, in <module>
_ansiballz_main()
File "/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py", line 567, in <module>
File "/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py", line 558, in main
File "/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py", line 413, in present
IndexError: list index out of range
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py\", line 114, in <module>\n _ansiballz_main()\n File \"/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/testu18/.ansible/tmp/ansible-tmp-1571406273.68-75225899370258/AnsiballZ_lineinfile.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py\", line 567, in <module>\n File \"/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py\", line 558, in main\n File \"/tmp/ansible_lineinfile_payload_BHn2mK/__main__.py\", line 413, in present\nIndexError: list index out of range\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost
```
| https://github.com/ansible/ansible/issues/63684 | https://github.com/ansible/ansible/pull/63696 | 05c8e33983802cf2f3dd6af6fb2da8a94bc6914d | 92cd13a2cff295c7cd5f196c3e30b9db4c9f1c1a | 2019-10-18T13:45:17Z | python | 2019-10-22T14:39:58Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,683 | ["changelogs/fragments/63683-dnf-handle-empty-appstream-stream.yml", "lib/ansible/modules/packaging/os/dnf.py", "test/integration/targets/dnf/tasks/modularity.yml", "test/integration/targets/dnf/vars/Fedora.yml", "test/integration/targets/dnf/vars/RedHat.yml"] | dnf module crashes when omitting a specific appstream 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 -->
Reading the [dnf module documentation](https://docs.ansible.com/ansible/latest/modules/dnf_module.html), I should be able to install a yum module just specifing an appstream module name with a profile without the need to specify an appstream version.
But if you omit the appstream version, the dnf ansible plugin crashes with a strack-trace
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
dnf
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible-playbook 2.8.6
config file = /home/ansible/.virtualenvs/ansb28/ansible.cfg
configured module search path = [u'/home/ansible/ansb28/ansible/library']
ansible python module location = /home/ansible/.virtualenvs/ansb28/lib/python2.7/site-packages/ansible
executable location = /home/ansible/.virtualenvs/ansb28/bin/ansible-playbook
python version = 2.7.5 (default, Sep 15 2016, 22:37:39) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/home/ansible/.virtualenvs/ansb28/ansible.cfg) = True
DEFAULT_CALLBACK_PLUGIN_PATH(/home/ansible/.virtualenvs/ansb28/ansible.cfg) = [u'/home/ansibleiso/.virtualenvs/ansb28/lib/python2.7/site-packages/ara/plugins/callbacks']
DEFAULT_CALLBACK_WHITELIST(/home/ansible/.virtualenvs/ansb28/ansible.cfg) = [u'ara']
DEFAULT_INVENTORY_PLUGIN_PATH(/home/ansible/.virtualenvs/ansb28/ansible.cfg) = [u'/home/ansibleiso/.virtualenvs/ansb28/ansible/plugins/inventory']
DEFAULT_MODULE_PATH(/home/ansible/.virtualenvs/ansb28/ansible.cfg) = [u'/home/ansibleiso/ansb28/ansible/library']
DEFAULT_ROLES_PATH(env: ANSIBLE_ROLES_PATH) = [u'/home/ansible/infra/roles']
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
management host: CentOS 7
target host: CentOS 8
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Try to run the following task against a CentOS 8 host:
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Install rhn-client and other required packages (EL8)
dnf:
name: "@satellite-5-client/common"
state: present
when: ansible_distribution_major_version == "8"
```
The task fails with the following stacktrace:
```
centos8 | FAILED! => {
"changed": false,
"module_stderr": "Shared connection to 10.4.2.130 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/usr/lib/python3.6/site-packages/dnf/plugin.py\", line 102, in _caller\r\n getattr(plugin, method)()\r\n File \"/usr/lib/python3.6/site-packages/dnf-plugins/spacewalk.py\", line 84, in config\r\n self.cli.demands.root_user = True\r\nAttributeError: 'NoneType' object has no attribute 'demands'\r\n\r\nTraceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1571403585.19-28589661305719/AnsiballZ_dnf.py\", line 114, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1571403585.19-28589661305719/AnsiballZ_dnf.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1571403585.19-28589661305719/AnsiballZ_dnf.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/usr/lib64/python3.6/imp.py\", line 235, in load_module\r\n return load_source(name, filename, file)\r\n File \"/usr/lib64/python3.6/imp.py\", line 170, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File \"<frozen importlib._bootstrap>\", line 618, in _exec\r\n File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\r\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n File \"/tmp/ansible_dnf_payload_wsyb0smr/__main__.py\", line 1322, in <module>\r\n File \"/tmp/ansible_dnf_payload_wsyb0smr/__main__.py\", line 1311, in main\r\n File \"/tmp/ansible_dnf_payload_wsyb0smr/__main__.py\", line 1290, in run\r\n File \"/tmp/ansible_dnf_payload_wsyb0smr/__main__.py\", line 957, in ensure\r\n File \"/tmp/ansible_dnf_payload_wsyb0smr/__main__.py\", line 890, in _is_module_installed\r\nTypeError: 'in <string>' requires string as left operand, not NoneType\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
<!--- 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 appstream module is installed using the default module version without the need to specify it.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The dnf module crashes
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/63683 | https://github.com/ansible/ansible/pull/63819 | b96ae6ab676744264a3915d57fd2fb9454e57384 | ed86907587140daa933d8db08c7dca473757a63a | 2019-10-18T13:35:31Z | python | 2019-10-24T04:57:31Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,623 | ["lib/ansible/module_utils/network/ios/config/vlans/vlans.py", "test/integration/targets/ios_vlans/tests/cli/_remove_config.yaml", "test/integration/targets/ios_vlans/tests/cli/merged.yaml", "test/integration/targets/ios_vlans/tests/cli/overridden.yaml", "test/integration/targets/ios_vlans/vars/main.yaml"] | IOS Vlans resource module override state not working as expected | <!--- 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 -->
IOS Vlans resource module override state not working as expected when VLAN that doesn't pre-exist is tried to be configured via override operation the VLAN is not configured.
##### 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_vlans
##### 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. -->
ios
##### 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 -->
New VLAN should be configured via the override state
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
New VLAN is missed and not configured the override state
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/63623 | https://github.com/ansible/ansible/pull/63624 | 684e70c8d79422a8264de86d2ce0bdf95d321b71 | 4f2665810fd19ed625de83bb41bd2cb521052834 | 2019-10-17T11:10:16Z | python | 2019-10-18T08:26:23Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,616 | ["docs/docsite/rst/plugins/cache.rst"] | Inventory cache settings 2.7.13 | <!--- 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 -->
According to the documentation, if _cache_plugin_ and _cache_connection_ are not set in _[inventory]_ section of ansible.cfg and cache set to True, the values should be taken from fact_caching and fact_caching_connection in defaults section.
This is working with ansible 2.8.5 but returns an error in 2.7.13
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
Inventory cache settings
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.7.13
config file = /home/xxx/automation-cisco/ansible/ansible.cfg
configured module search path = ['/home/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
CACHE_PLUGIN(/home/xxx/automation-cisco/ansible/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/home/xxx/automation-cisco/ansible/ansible.cfg) = cache
```
The config in [inventory] section doesn't show in this output (no matter if cache_plugin is set or not) - OK found #46097
In Ansible 2.8.5 :
```
INVENTORY_CACHE_ENABLED(/home/xxx/automation-cisco/ansible/ansible.cfg) = True
```
##### 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 -->
Set the following in ansible.cfg
```
[defaults]
fact_caching = jsonfile
fact_caching_connection = cache
[inventory]
cache = True
#linked to fact_caching options if not specified (OK in 2.8+, not in 2.7)
#cache_plugin = jsonfile
#cache_connection = cache
```
Will return an error; uncomment cache_plugin AND cache_connection and it will work
<!--- Paste example playbooks or commands between quotes below -->
```bash
ansible-inventory --graph
```
<!--- 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 inventory cache options should inherit from fact_caching options, even the error messages states it.
https://docs.ansible.com/ansible/2.7/plugins/cache.html
> If an inventory-specific cache plugin is not provided and inventory caching is enabled, the fact cache plugin is used for inventory.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
[WARNING]: * Failed to parse /home/xxx/automation-cisco/ansible/inventory/01-netbox.yml with auto plugin: error, 'None' inventory cache plugin requires the one of the following to be set: ansible.cfg: [default]: fact_caching_connection, [inventory]: cache_connection;
Environment: ANSIBLE_INVENTORY_CACHE_CONNECTION, ANSIBLE_CACHE_PLUGIN_CONNECTION.to be set to a writeable directory path
```
| https://github.com/ansible/ansible/issues/63616 | https://github.com/ansible/ansible/pull/63635 | 7d4800deb12c0b2894b0715065e1e0ab4caea99f | a4b36b2e6a1e66ee8479e36adcad4419fa058d3e | 2019-10-17T08:30:34Z | python | 2019-11-18T22:00:26Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,590 | ["test/integration/targets/mysql_variables/aliases"] | setup_mysql8 integration test role fails when run with the test group | <!--- 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 `setup_mysql8` role is run as part of the `shippable/posix/group1/`, the service fails to start and the test fails.
Example failure output from [this run](https://app.shippable.com/github/ansible/ansible/runs/146941/68/tests):
```
{
"changed": false,
"msg": "Unable to start service mysqld: Job for mysqld.service failed because the control process exited with error code. See \"systemctl status mysqld.service\" and \"journalctl -xe\" for details.\n"
}
```
##### 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/setup_mysql8`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.10
```
##### 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 -->
Run `ansible-test integration --docker centos7 shippable/posix/group1/`
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Tests pass
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Tests fail
<!--- Paste verbatim command output between quotes -->
```
{
"changed": false,
"msg": "Unable to start service mysqld: Job for mysqld.service failed because the control process exited with error code. See \"systemctl status mysqld.service\" and \"journalctl -xe\" for details.\n"
}
```
```
| https://github.com/ansible/ansible/issues/63590 | https://github.com/ansible/ansible/pull/63602 | 4cad7e479c922cd973015fd1cf4bd5e5890158de | d615d7ea1924eb3e63d4e5d77423d261b3673800 | 2019-10-16T20:28:29Z | python | 2019-10-17T06:26:09Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,507 | ["lib/ansible/modules/cloud/vmware/vmware_guest_network.py", "test/integration/targets/vmware_guest_network/tasks/main.yml"] | vmware_guest has UptCompatibilityEnabled set to true by default with no option to change | <!--- 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 vmware_guest module UptCompatibilityEnabled set to true by default with no option to change. This is the "checkbox" in vSphere for "DirectPath I/O." It should have an option to change this value as part of the networks parameter in the vmware_guest module.
##### 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
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/gforster/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/gforster/.local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15+ (default, Jul 9 2019, 16:51:35) [GCC 7.4.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 -->
Create a VM using the vmware_guest module.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: PROVISION | Create VM
vmware_guest:
validate_certs: "{{ validate_certs }}"
hostname: "{{ vcenter_host }}"
username: '{{ vcenter_username }}'
password: "{{ vcenter_password }}"
datacenter: "{{ datacenter }}"
name: "{{ item }}"
guest_id: "{{ vmware_guest_id }}"
folder: "{{ vmware_folder }}"
state: poweredon
annotation: '{{ vmnotes|default("Provisioning new VM") }}'
cluster: "{{ vmware_cluster }}"
hardware:
num_cpus: "{{ cpu }}"
memory_mb: "{{ mem_mb }}"
hotadd_cpu: true
hotremove_cpu: true
hotadd_memory: true
scsi: lsilogicsas
disk:
- size_gb: "{{ os_disk }}"
type: thick
datastore: "{{ vmware_datastore }}"
# autoselect_datastore: true
networks:
- name: "{{ pxe_vlan }}"
device_type: vmxnet3
wait_for_ip_address: "{{ wait_for_ip }}"
register: new_vm
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
DirectPath I/O (UptCompatibilityEnabled ) should not be enabled by default and/or have parameter to set it.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
DirectPath I/O (UptCompatibilityEnabled ) is enabled by default with no parameter to change it.
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/63507 | https://github.com/ansible/ansible/pull/63610 | 4e7c0b3e21d425b1e31842011e687a5d65fed92d | 3a9650df98b7e0219f060aa5ec775f22d4170f10 | 2019-10-15T11:46:39Z | python | 2019-11-13T21:12:52Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,502 | ["lib/ansible/module_utils/ovirt.py"] | ovirt_vm_facts no bootable fact if false | <!--- 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 gathering facts on an oVirt VM the bootable variable in the disk attachment is only filled out when the flag is true, if false the variable stays empty and will be non existing.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/modules/cloud/ovirt/ovirt_vm_info.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_ACTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/usr/local/lib/python3.6/dist-packages/ara/plugins/actions']
DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/usr/local/lib/python3.6/dist-packages/ara/plugins/callbacks']
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = ['slack']
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = ['/home/user/ansible-store/inventory']
DEFAULT_JINJA2_EXTENSIONS(/etc/ansible/ansible.cfg) = jinja2.ext.do,jinja2.ext.i18n,jinja2.ext.loopcontrols
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible
DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = ['/home/user/ansible-store/roles']
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 300
DEFAULT_VAULT_PASSWORD_FILE(/etc/ansible/ansible.cfg) = /etc/ansible/.vault_pass
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
INVENTORY_IGNORE_EXTS(/etc/ansible/ansible.cfg) = ['.pyc', '.pyo', '.swp', '.bak', '~', '.rpm', '.md', '.txt', '~', '.orig', '.ini', '.cfg', '.retry', '.py']
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Ansible Host: Ubuntu 18.04.2 LTS
Client: CentOS Linux release 7.4.1708
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Ansible playbook that uses the module ovirt_vm_facts and then uses debug to display the gathered facts.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: VM Fact Gathering
ovirt_vm_facts:
auth: "{{ ovirt_auth }}"
fetch_nested: yes
nested_attributes:
- bootable
all_content: yes
pattern: name=testvm01
- debug:
var: ovirt_vms[0].disk_attachments
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
```
"ovirt_vms[0].disk_attachments": [
{
"bootable": false,
"href": "/ovirt-engine/api/vms/0bf62b1b-dc74-4a5c-bc09-62bd5f860911/diskattachments/51ec34a4-fbbd-4ff9-8f97-91a1c732a5f5",
"id": "51ec34a4-fbbd-4ff9-8f97-91a1c732a5f5"
},
{
"bootable": true,
"href": "/ovirt-engine/api/vms/0bf62b1b-dc74-4a5c-bc09-62bd5f860911/diskattachments/6f92958a-8c25-4733-af97-e860a375d2c4",
"id": "6f92958a-8c25-4733-af97-e860a375d2c4"
}
]
}
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
"ovirt_vms[0].disk_attachments": [
{
"href": "/ovirt-engine/api/vms/0bf62b1b-dc74-4a5c-bc09-62bd5f860911/diskattachments/51ec34a4-fbbd-4ff9-8f97-91a1c732a5f5",
"id": "51ec34a4-fbbd-4ff9-8f97-91a1c732a5f5"
},
{
"bootable": true,
"href": "/ovirt-engine/api/vms/0bf62b1b-dc74-4a5c-bc09-62bd5f860911/diskattachments/6f92958a-8c25-4733-af97-e860a375d2c4",
"id": "6f92958a-8c25-4733-af97-e860a375d2c4"
}
]
}
```
| https://github.com/ansible/ansible/issues/63502 | https://github.com/ansible/ansible/pull/63908 | 5e9638c869225bb32608bd56d7fcd370edcfcc3a | 92d621202601ec8ac1aed020f6c338655d8a660d | 2019-10-15T09:34:36Z | python | 2019-10-25T13:51:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,490 | ["changelogs/fragments/user_missing_etc_shadow.yml", "lib/ansible/modules/system/user.py"] | Append user to group fails with FileNotFoundError | <!--- 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
Append user to group fails with `FileNotFoundError`
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
user
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ubuntu/.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, Oct 7 2019, 17:39:04) [GCC 7.4.0]
```
##### CONFIGURATION
```paste below
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
```
`pipelining = False` gives the same error.
##### OS / ENVIRONMENT
* Source OS: Ubuntu 18.04 (installed from http://ppa.launchpad.net/ansible/ansible/ubuntu)
* Target OS: Alpine Linux 3.10.2
* Target Python: Python 3.7.3
User is not part of the `wheel` group.
```sh
# id nv
uid=1000(nv) gid=1000(nv) groups=1000(nv)
```
##### STEPS TO REPRODUCE
```sh
ansible myhost -vvv -m user -a "name=nv groups=wheel append=yes" -e ansible_python_interpreter=/usr/bin/python3 -i hosts.yml -u root
```
##### EXPECTED RESULTS
user `nv` added to group `wheel`.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ubuntu/.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, Oct 7 2019, 17:39:04) [GCC 7.4.0]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /home/ubuntu/ansible-labs/ansible/hosts.yml as it did not pass it's verify_file() method
script declined parsing /home/ubuntu/ansible-labs/ansible/hosts.yml as it did not pass it's verify_file() method
Parsed /home/ubuntu/ansible-labs/ansible/hosts.yml inventory source with yaml plugin
META: ran handlers
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/user.py
Pipelining is enabled.
<myhost> ESTABLISH SSH CONNECTION FOR USER: root
<myhost> SSH: EXEC ssh -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=/home/ubuntu/.ansible/cp/a1dce85073 myhost '/bin/sh -c '"'"'/usr/bin/python3 && sleep 0'"'"''
<myhost> (1, '', '<stdin>:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module\'s documentation for alternative uses\nTraceback (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.7/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/usr/lib/python3.7/imp.py", line 169, in load_source\n module = _exec(spec, sys.modules[name])\n File "<frozen importlib._bootstrap>", line 630, in _exec\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_user_payload_8xr4egvj/__main__.py", line 2962, in <module>\n File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 2901, in main\n File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 2770, in modify_user\n File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 824, in get_groups_set\n File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 891, in user_info\n File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 899, in user_password\nFileNotFoundError: [Errno 2] No such file or directory\n')
<myhost> Failed to connect to the host via ssh: <stdin>:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
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.7/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.7/imp.py", line 169, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 630, in _exec
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 2962, in <module>
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 2901, in main
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 2770, in modify_user
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 824, in get_groups_set
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 891, in user_info
File "/tmp/ansible_user_payload_8xr4egvj/__main__.py", line 899, in user_password
FileNotFoundError: [Errno 2] No such file or directory
myhost | FAILED! => {
"changed": false,
"module_stderr": "<stdin>:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\nTraceback (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.7/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib/python3.7/imp.py\", line 169, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 630, in _exec\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_user_payload_8xr4egvj/__main__.py\", line 2962, in <module>\n File \"/tmp/ansible_user_payload_8xr4egvj/__main__.py\", line 2901, in main\n File \"/tmp/ansible_user_payload_8xr4egvj/__main__.py\", line 2770, in modify_user\n File \"/tmp/ansible_user_payload_8xr4egvj/__main__.py\", line 824, in get_groups_set\n File \"/tmp/ansible_user_payload_8xr4egvj/__main__.py\", line 891, in user_info\n File \"/tmp/ansible_user_payload_8xr4egvj/__main__.py\", line 899, in user_password\nFileNotFoundError: [Errno 2] No such file or directory\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
| https://github.com/ansible/ansible/issues/63490 | https://github.com/ansible/ansible/pull/63888 | 7f5d1ab2b730f1a2cbe7b4d578ec72a49636a282 | af0d70cb6fbb559f601aac076fe11a82b78709c5 | 2019-10-15T03:40:16Z | python | 2019-10-24T19:22:41Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,488 | ["lib/ansible/module_utils/azure_rm_common_ext.py", "lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py", "test/integration/targets/azure_rm_gallery/tasks/main.yml"] | azure_rm_galleryimageversion_module should be able to take data disk snapshots as input. | <!--- 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 -->
azure_rm_galleryimageversion_module should be able to take data disk snapshots as input.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
azure_rm_galleryimageversion_module
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
Starting from SIG api version 2019-07-01, we support creating image version from snapshots, which contains 1 os disk snapshot and 0 to many data disk snapshots. By having this feature, it give customers full power to create image version from snapshots.
Here is a sample request entity:
{"name":"1.0.0","location":"West US","properties":{"publishingProfile":{"excludeFromLatest":false},"storageProfile":{"osDiskImage":{"source":{"id":"/subscriptions/<subId>/resourceGroups/rgName/providers/Microsoft.Compute/snapshots/osSnapshotName"}},"dataDiskImages":[{"lun":0,"source":{"id":"/subscriptions/<subId>/resourceGroups/rg/providers/Microsoft.Compute/snapshots/datadiskSnapshot1"}}]}}}
So for data disk, user needs to provide "lun" and "source".
<!--- 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/63488 | https://github.com/ansible/ansible/pull/65405 | 2dcaa108d8eb388512096bc5da9032c9bf81af04 | cff80f131942a75692293714757f1d2c9c5578f4 | 2019-10-15T01:02:29Z | python | 2019-12-05T00:31:47Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,484 | ["changelogs/fragments/remove_contradiction.yml", "lib/ansible/modules/template.py"] | Contradictory hints in "copy" and "template" for in-line templating | <!--- 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
<!--- Explain the problem briefly below, add suggestions to wording or structure -->
ansible-doc template says: "You can use the [copy] module with the `content:' option if you prefer the template inline, as part of the playbook.
This suggests to use the copy module to write a template specified inline to the host
But ansible-doc copy says: "If you need variable interpolation in copied files, use the [template] module. Using a variable in the `content' field will result in unpredictable output."
... which suggest that exactly the use-case mentioned in the template module documentation does not work (and refers back to the template module)
<!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? -->
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
<!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure -->
template
copy
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/fennell/.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, Oct 7 2019, 17:39:04) [GCC 7.4.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. OS version, browser, etc. -->
##### ADDITIONAL INFORMATION
<!--- Describe how this improves the documentation, e.g. before/after situation or screenshots -->
<!--- HINT: You can paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/63484 | https://github.com/ansible/ansible/pull/70658 | 57b548598c07afda1db9e0c79dca019114a6e392 | 112aa574f56469ab77d7faf9f637f9160aa49e26 | 2019-10-14T20:26:50Z | python | 2020-07-15T18:16:56Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,455 | ["changelogs/fragments/63969-zabbix_action_argsfix.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/monitoring/zabbix/zabbix_action.py"] | zabbix_action: do not require esc_period for state: absent | ##### SUMMARY
`esc_period` is mandatory even with `state: absent` - should be optional in that case.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
zabbix_action
##### ANSIBLE VERSION
latest
##### CONFIGURATION
Not relevant.
##### OS / ENVIRONMENT
Not relevant.
##### STEPS TO REPRODUCE
```yaml
- name: "Report problems to Zabbix administrators"
event_source: 'trigger'
state: absent
```
##### EXPECTED RESULTS
Action, if exists, is removed.
##### ACTUAL RESULTS
```paste below
"msg": "missing required arguments: esc_period"
``` | https://github.com/ansible/ansible/issues/63455 | https://github.com/ansible/ansible/pull/63969 | 21c8dae83b832a8abde59e7ba94c74d6c7f8a128 | 0cb19e655c7a6fdf9acbde7d1e8f712dc0f7509d | 2019-10-14T11:46:25Z | python | 2019-11-08T11:15:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,449 | ["lib/ansible/modules/monitoring/zabbix/zabbix_host.py"] | zabbix_host: cannot update host with port set to usermacro | ##### SUMMARY
If a host has port set to a usermacro, the host is created successfully. On the next run, the update fails with `ValueError: invalid literal for int() with base 10: {$MACRO}`.
Tested with the latest `zabbix_host` from git.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
zabbix_host
##### ANSIBLE VERSION
latest
##### CONFIGURATION
Not relevant.
##### OS / ENVIRONMENT
Not relevant.
##### STEPS TO REPRODUCE
Have a host definition with usermacro used for port in an interface. Create the host via Ansible, then run the playbook again.
##### EXPECTED RESULTS
Success (reported as no change).
##### ACTUAL RESULTS
```paste below
Traceback (most recent call last):
File \"/home/ansible/.ansible/tmp/ansible-tmp-1571042967.61-236562069605480/AnsiballZ_zabbix_host.py\", line 114, in <module>
_ansiballz_main()
File \"/home/ansible/.ansible/tmp/ansible-tmp-1571042967.61-236562069605480/AnsiballZ_zabbix_host.py\", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File \"/home/ansible/.ansible/tmp/ansible-tmp-1571042967.61-236562069605480/AnsiballZ_zabbix_host.py\", line 49, in invoke_module
imp.load_module(__main__, mod, module, MOD_DESC)
File \"/tmp/ansible_zabbix_host_payload_7ml4r2/__main__.py\", line 857, in <module>
File \"/tmp/ansible_zabbix_host_payload_7ml4r2/__main__.py\", line 817, in main
File \"/tmp/ansible_zabbix_host_payload_7ml4r2/__main__.py\", line 479, in check_all_properties
File \"/tmp/ansible_zabbix_host_payload_7ml4r2/__main__.py\", line 437, in check_interface_properties
ValueError: invalid literal for int() with base 10: {$MACRO}
```
| https://github.com/ansible/ansible/issues/63449 | https://github.com/ansible/ansible/pull/63637 | f92c99b4135327629cc2c92995f00102fcf2f681 | aa671be28bb6a3b4b597e54af618a5255a074149 | 2019-10-14T09:02:34Z | python | 2019-10-21T10:12:10Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,447 | ["changelogs/fragments/63621-gitlab_user-fix-sshkey-and-user.yml", "lib/ansible/modules/source_control/gitlab_user.py"] | gitlab_user does not set sshkey when user is new or changed | ##### SUMMARY
The gitlab_user module does not set sshkey when the user is newly created or has been changed already. This is due to the `changed = changed or ...` construct on line 237 in branch devel.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`lib/ansible/modules/source_control/gitlab_user.py`
##### ANSIBLE VERSION
```
ansible 2.8.1
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.virtualenvs/ans3.6/lib/python3.6/site-packages/ansible
executable location = /home/user/.virtualenvs/ans3.6/bin/ansible
python version = 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
```
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### STEPS TO REPRODUCE
Create a new gitlab user and set sshkey:
```
- name: Create gitlab user
gitlab_user:
server_url: "{{ gitlab_url }}"
api_token: "{{ gitlab_token }}"
name: test user
username: test_user
password: "{{ user_password }}"
email: "{{ user_email }}"
sshkey_name: test_user
sshkey_file: "{{ key_content }}"
state: present
# Note that the sshkey for test_user is not actually set now
# Run the same module again to set the sskey
- name: Actually set sshkey for gitlab user
gitlab_user:
server_url: "{{ gitlab_url }}"
api_token: "{{ gitlab_token }}"
name: test user
username: test_user
password: "{{ user_password }}"
email: "{{ user_email }}"
sshkey_name: test_user
sshkey_file: "{{ key_content }}"
state: present
```
##### EXPECTED RESULTS
Only having to run the module once should set all the fields correctly.
##### ACTUAL RESULTS
Running the module once does not set sshkey, if the user was not yet there or changed. | https://github.com/ansible/ansible/issues/63447 | https://github.com/ansible/ansible/pull/63621 | 7dd46f7b2ded8585ecb4e26f3c448c426d2008d9 | b4bb3dee9aebf2491e88f0ee63a5f2e704827c50 | 2019-10-14T08:35:56Z | python | 2019-10-17T14:22:15Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,417 | ["changelogs/fragments/63417-unique-filter-preserve-order.yml", "lib/ansible/plugins/filter/mathstuff.py", "test/units/plugins/filter/test_mathstuff.py"] | unique filter does not respect order | <!--- 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 -->
`unique` filter does not respect the order and gives non-idempotent results
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/plugins/filter/mathstuff.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
```
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
I have the following statement in my template
```jinja2
{% for host in url_list | map('urlsplit', 'hostname') | unique %}
upstream {{ host }} {
server {{ host }}:443;
keepalive 20;
keepalive_requests 500;
keepalive_timeout 30s;
}
{% endfor %}
```
which basically extracts unique host names from some url list and declares upstream server for each.
##### EXPECTED RESULTS
The order of hosts is at least consistent between runs.
##### ACTUAL RESULTS
The order of hosts is different for each run. Unexpected handlers are triggered.
| https://github.com/ansible/ansible/issues/63417 | https://github.com/ansible/ansible/pull/67856 | 35022e13a839d5f59a1c4a254aca12afb124373a | ae08c6a639b492ee5ad24048f40c8a5792eacdcb | 2019-10-12T13:11:44Z | python | 2020-11-23T07:55:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,412 | ["lib/ansible/plugins/connection/network_cli.py"] | Pull #47290 does not seem to have resolved ios priviledge 0 bug | <!--- 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 -->
Still receiving "unable to set terminal parameter for Cisco IOS devices with priviledge 0 user and become: yes configured
##### 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_command module
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/bryan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/bryan/.local/lib/python3.6/site-packages/ansible
executable location = /home/bryan/.local/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
COLOR_VERBOSE(/etc/ansible/ansible.cfg) = red
DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = False
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Mix of Cisco IOS devices
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Any ios-related modules are failing due to broken priviledge escalation. This is with Ansible v2.8, v2.8.5 and devel 2.10.0.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- name: Show Version
hosts: all
become: yes
become_method: enable
gather_facts: no
# vars_files:
# - vault.yml
tasks:
- name: Show Version
ios_command:
commands: "Show Version"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Priviledge escalation to work as expected
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Fatal error: "msg": "unable to set terminal parameters"
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-playbook 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/bryan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/bryan/.local/lib/python3.6/site-packages/ansible
executable location = /home/bryan/.local/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
BECOME password:
setting up inventory plugins
host_list declined parsing /home/bryan/CoKAnsible/inventory as it did not pass its verify_file() method
script declined parsing /home/bryan/CoKAnsible/inventory as it did not pass its verify_file() method
auto declined parsing /home/bryan/CoKAnsible/inventory as it did not pass its verify_file() method
Parsed /home/bryan/CoKAnsible/inventory inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /home/bryan/.local/lib/python3.6/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: FirstPlay.yml ****************************************************************************************************************************************************
Positional arguments: FirstPlay.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
become_ask_pass: True
tags: ('all',)
inventory: ('/home/bryan/CoKAnsible/inventory',)
subset: 172.16.225.253
forks: 5
1 plays in FirstPlay.yml
PLAY [Show Version] ********************************************************************************************************************************************************
META: ran handlers
TASK [Show Version] ********************************************************************************************************************************************************
task path: /home/bryan/CoKAnsible/FirstPlay.yml:11
<172.16.225.253> attempting to start connection
<172.16.225.253> using connection plugin network_cli
Found ansible-connection at path /home/bryan/.local/bin/ansible-connection
<172.16.225.253> local domain socket does not exist, starting it
<172.16.225.253> control socket path is /home/bryan/.ansible/pc/6ea8c00d6e
<172.16.225.253> local domain socket listeners started successfully
<172.16.225.253> loaded cliconf plugin for network_os ios
<172.16.225.253>
<172.16.225.253> local domain socket path is /home/bryan/.ansible/pc/6ea8c00d6e
fatal: [172.16.225.253]: FAILED! => {
"changed": false,
"msg": "unable to set terminal parameters"
}
PLAY RECAP *****************************************************************************************************************************************************************
172.16.225.253 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/63412 | https://github.com/ansible/ansible/pull/63571 | 0a384601764814f9f8b1731e01d1bcbdca2c9b37 | 0cd2ad588032ac1d15ca7084c5c03c91e607a80a | 2019-10-11T23:57:18Z | python | 2019-10-30T20:10:36Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,406 | ["lib/ansible/module_utils/network/eos/config/vlans/vlans.py", "test/integration/targets/eos_vlans/tests/cli/deleted.yaml", "test/integration/targets/eos_vlans/tests/cli/overridden.yaml"] | eos_vlans : 'Overridden' state is not adding the new configs | ##### SUMMARY
In eos_vlans, when state = "overridden" , the existing configurations are deleted/defaulted as expected. But it fails to add the new configuration. The playbook still declares "Pass".
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
eos_vlans.py
##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/gosriniv/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/gosriniv/ansible/lib/ansible
executable location = /home/gosriniv/ansible/bin/ansible
python version = 3.6.5 (default, Sep 4 2019, 12:23:33) [GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
```
##### CONFIGURATION
##### OS / ENVIRONMENT
```
Arista vEOS
```
##### STEPS TO REPRODUCE
```
---
- hosts: eos
gather_facts: false
connection: network_cli
tasks:
- name: Merge given VLAN attributes with device configuration
eos_vlans:
config:
- vlan_id: 10
name: "ten"
- vlan_id: 20
name: "newvlan"
state: merged
- name: Override given VLAN attributes with device configuration
eos_vlans:
config:
- vlan_id: 50
name: "fifty"
state: "suspend"
state: overridden
```
##### EXPECTED RESULTS
Deletion of vlan 10 and vlan 20.
Addition of vlan 50
##### ACTUAL RESULTS
```
Refer to 'after'
changed: [10.8.38.31] => {
"after": [
{
"vlan_id": 10
},
{
"vlan_id": 20
}
],
"before": [
{
"name": "ten",
"vlan_id": 10
},
{
"name": "newvlan",
"vlan_id": 20
}
],
"changed": true,
"commands": [
"vlan 10",
"no name",
"vlan 20",
"no name"
],
"invocation": {
"module_args": {
"config": [
{
"name": "fifty",
"state": "suspend",
"vlan_id": 50
}
],
"state": "overridden"
}
}
}
```
| https://github.com/ansible/ansible/issues/63406 | https://github.com/ansible/ansible/pull/63639 | 4326165be56c1bc990d0e9eaef951227b0e94687 | 741d529409a03c361efc78a418bc56c4dc5a52eb | 2019-10-11T17:13:52Z | python | 2019-10-18T14:36:30Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,378 | ["changelogs/fragments/63378_find_module_regex_whole_file.yml", "lib/ansible/modules/find.py", "test/integration/targets/find/files/a.txt", "test/integration/targets/find/files/log.txt", "test/integration/targets/find/tasks/main.yml"] | Module Find, Contains option Regex bug ? | Hello,
I found a strange return with a module find and contains option, with the python regex "\Z"
https://docs.python.org/2/library/re.html
\Z --> Matches only at the end of the string.
I need to check the result of the last string if it's OK or KO
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
module find
##### ANSIBLE VERSION
ansible 2.8.0
config file = None
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /tmp/ansible/ansible
executable location = ansible
python version = 2.7.5
##### OS / ENVIRONMENT
Red Hat Enterprise Linux Server release 7.3 (Maipo)
##### STEPS TO REPRODUCE
create a file /tmp/test.log with :
>
> 01/01- OK
> 01/02- OK
> 01/03- KO
> 01/04- OK
playbook :
```
---
- name: check if last line is OK
hosts: localhost
become: true
tasks:
- name: check
find:
paths: /tmp/
pattern: 'test.log'
age: -30d
age_stamp: mtime
contains: ".*OK$\\Z"
use_regex: yes
```
ps : i try with contains: '.*OK$\Z' same result
##### EXPECTED RESULTS
the end of last line is OK so we need to have = return "matched": 1,
the end of last line is KO so we need to have = return "matched": 0,
regex check --> https://regex101.com/r/hR9BB8/1
##### ACTUAL RESULTS
IF my regex is ".*OK$" (without \Z) , I get "matched": 1 but i don't check the last line and same result if the last line is KO
output :
`ok: [localhost] => {
"changed": false,
"examined": 138,
"files": [],
"invocation": {
"module_args": {
"age": "-30d",
"age_stamp": "mtime",
"contains": ".*FIN OK$\\Z",
"depth": null,
"excludes": null,
"file_type": "file",
"follow": false,
"get_checksum": false,
"hidden": false,
"paths": [
"/tmp/"
],
"pattern": "test.log",
"patterns": [
"test.log"
],
"recurse": false,
"size": null,
"use_regex": true
}
},
"matched": 0,
"msg": ""
}`
| https://github.com/ansible/ansible/issues/63378 | https://github.com/ansible/ansible/pull/71083 | 5ca3aec3c4bd03d8619325034ba12a34293276ef | 810a9a55930951e547529a44e46c6f1829355fbf | 2019-10-11T10:43:12Z | python | 2020-08-04T17:49:45Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,364 | ["changelogs/fragments/63408-nsupdate-dont-fix-none-txt-value.yaml", "lib/ansible/modules/net_tools/nsupdate.py"] | nsupdate module failed to remove Letsencrypt DNS challenge record | <!--- 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
we use Letsencrypt to generate a certificate with DNS challenge. Ansible works great to satisfy the challenge. However, when we want to remove the record as it is no longer needed, ansible is reporting module failure.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible **nsupdate**
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.5
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/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.15+ (default, Oct 7 2019, 17:39:04) [GCC 7.4.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/etc/ansible/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = [u'timer']
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/Ansible/inventory']
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log
DEFAULT_PRIVATE_KEY_FILE(/etc/ansible/ansible.cfg) = /etc/ansible/master.rsa
DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', u'/Ansible/roles']
DEFAULT_SSH_TRANSFER_METHOD(/etc/ansible/ansible.cfg) = scp
DEFAULT_VAULT_PASSWORD_FILE(/etc/ansible/ansible.cfg) = /root/.ssh/vault-pw.conf
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
CentOS Linux release 7.2.1511 (Core)
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- set_facts:
zone_records:
- name: '_acme-challenge.awx'
state: absent
type: TXT
- name: remove dns records from vars
nsupdate:
key_name: "{{ vault_nsupdate_key_name }}"
key_secret: "{{ vault_nsupdate_key_secret }}"
server: "{{dns_server}}"
zone: "{{zone}}"
record: "{{item.name}}"
type: "{{item.type}}"
state: "{{item.state}}"
with_items: "{{zone_records}}"
when: server_role == "master" and item.state == "absent"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
_acme-challenge.awx TXT record is removed from DNS server
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
I have to run ansible-playbook with **-vvv** (3 v) as "-vvvv(4v) will give ssh error:
```
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/net_tools/nsupdate.py
Pipelining is enabled.
<dns01.lpr> ESTABLISH SSH CONNECTION FOR USER: None
<dns01.lpr> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/ansible/master.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/eb56091f4e dns01.lpr '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<dns01.lpr> (1, '', '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_nsupdate_payload_OWViZX/__main__.py", line 430, in <module>\n File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 408, in main\n File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 225, in __init__\nTypeError: argument 2 to map() must support iteration\n')
<dns01.lpr> Failed to connect to the host via ssh: 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_nsupdate_payload_OWViZX/__main__.py", line 430, in <module>
File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 408, in main
File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 225, in __init__
TypeError: argument 2 to map() must support iteration
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_nsupdate_payload_OWViZX/__main__.py", line 430, in <module>
File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 408, in main
File "/tmp/ansible_nsupdate_payload_OWViZX/__main__.py", line 225, in __init__
TypeError: argument 2 to map() must support iteration
failed: [dns01.lpr] (item={u'state': u'absent', u'type': u'TXT', u'name': u'_acme-challenge.awx', u'ttl': u'3600'}) => {
"ansible_loop_var": "item",
"changed": false,
"item": {
"name": "_acme-challenge.awx",
"state": "absent",
"ttl": "3600",
"type": "TXT"
},
"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_nsupdate_payload_OWViZX/__main__.py\", line 430, in <module>\n File \"/tmp/ansible_nsupdate_payload_OWViZX/__main__.py\", line 408, in main\n File \"/tmp/ansible_nsupdate_payload_OWViZX/__main__.py\", line 225, in __init__\nTypeError: argument 2 to map() must support iteration\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
Here is the result when running ansible-playbook with -vvvv (4v):
```paste below
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/net_tools/nsupdate.py
Pipelining is enabled.
<dns01.lpr> ESTABLISH SSH CONNECTION FOR USER: None
<dns01.lpr> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'IdentityFile="/etc/ansible/master.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/eb56091f4e dns01.lpr '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<dns01.lpr> (1, '', 'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /root/.ssh/config\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 = 26756\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (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_nsupdate_payload_pwj0Q7/__main__.py", line 430, in <module>\n File "/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py", line 408, in main\n File "/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py", line 225, in __init__\nTypeError: argument 2 to map() must support iteration\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
<dns01.lpr> Failed to connect to the host via ssh: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
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 = 26756
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
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_nsupdate_payload_pwj0Q7/__main__.py", line 430, in <module>
File "/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py", line 408, in main
File "/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py", line 225, in __init__
TypeError: argument 2 to map() must support iteration
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
failed: [dns01.lpr] (item={u'state': u'absent', u'type': u'TXT', u'name': u'_acme-challenge.awx', u'ttl': u'3600'}) => {
"ansible_loop_var": "item",
"changed": false,
"item": {
"name": "_acme-challenge.awx",
"state": "absent",
"ttl": "3600",
"type": "TXT"
},
"module_stderr": "OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /root/.ssh/config\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 = 26756\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (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_nsupdate_payload_pwj0Q7/__main__.py\", line 430, in <module>\n File \"/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py\", line 408, in main\n File \"/tmp/ansible_nsupdate_payload_pwj0Q7/__main__.py\", line 225, in __init__\nTypeError: argument 2 to map() must support iteration\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
```
| https://github.com/ansible/ansible/issues/63364 | https://github.com/ansible/ansible/pull/63408 | 332b22085458d105a52a38494f2dfebd946a0055 | 98b025239a692b9b5d3533e977c0881792900348 | 2019-10-11T01:50:15Z | python | 2019-10-16T12:28:41Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,353 | ["changelogs/fragments/63418-docker_node_info-errors.yml", "lib/ansible/module_utils/docker/swarm.py"] | docker_node_info fails with exception when the node name is ambiguous | <!--- 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 using the docker_node_info with a node name that would be ambiguous, the module fails with an exception about an undefined variable.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
docker_node_info
##### ANSIBLE VERSION
```
ansible 2.8.5
config file = /home/vagrant/code/ansible-playbooks/ansible.cfg
configured module search path = [u'/home/vagrant/.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
```
DEFAULT_LOAD_CALLBACK_PLUGINS(/home/vagrant/code/ansible-playbooks/ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/home/vagrant/code/ansible-playbooks/ansible.cfg) = yaml
HOST_KEY_CHECKING(/home/vagrant/code/ansible-playbooks/ansible.cfg) = False
```
##### OS / ENVIRONMENT
Running on Ubuntu, targeting Ubuntu
##### STEPS TO REPRODUCE
Create a minimal docker swarm setup, with 2 nodes, one manager and one worker. Add the worker to the swarm, then leave the swarm then re-join the swarm. This will lead to an output similar to:
```
azureuser@pgelinas-dev-ln0:~$ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
0oqo20dyohnfm0d2itjvnlt0x pgelinas-d-wn0 Down Active 18.09.9
ikqtd942969nc3d9j0k68isfi pgelinas-d-wn0 Ready Active 18.09.9
wf1mmy7zbuhsfu4vstvl06t2y * pgelinas-dev-ln0 Ready Active Leader 19.03.3
```
And docker node inspect output gives the following:
```
azureuser@pgelinas-dev-ln0:~$ docker node inspect pgelinas-d-wn0
[]
Status: Error response from daemon: node pgelinas-d-wn0 is ambiguous (2 matches found), Code: 1
```
Sample task definition:
```yaml
- name: Ensure worker has joined the swarm
delegate_to: "pgelinas-dev-ln0"
docker_node_info:
name: "{{ ansible_hostname }}"
register: result
failed_when: result.nodes is not defined
```
##### EXPECTED RESULTS
The module should handle the error gracefully and provide the error message/status in the result
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
TASK [swarm-worker : Ensure worker has joined the swarm] **********************************************************************************************************************************************************
fatal: [pgelinas-dev-ww0 -> pgelinas-dev-lm0.centralus.cloudapp.azure.com]: FAILED! => changed=false
attempts: 1
failed_when_result: true
module_stderr: |-
Shared connection to pgelinas-dev-lm0.centralus.cloudapp.azure.com closed.
module_stdout: |-
Traceback (most recent call last):
File "/home/azureuser/.ansible/tmp/ansible-tmp-1570731617.12-46436432626554/AnsiballZ_docker_node_info.py", line 114, in <module>
_ansiballz_main()
File "/home/azureuser/.ansible/tmp/ansible-tmp-1570731617.12-46436432626554/AnsiballZ_docker_node_info.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/azureuser/.ansible/tmp/ansible-tmp-1570731617.12-46436432626554/AnsiballZ_docker_node_info.py", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/tmp/ansible_docker_node_info_payload_nJH7PJ/__main__.py", line 158, in <module>
File "/tmp/ansible_docker_node_info_payload_nJH7PJ/__main__.py", line 145, in main
File "/tmp/ansible_docker_node_info_payload_nJH7PJ/__main__.py", line 123, in get_node_facts
File "/tmp/ansible_docker_node_info_payload_nJH7PJ/ansible_docker_node_info_payload.zip/ansible/module_utils/docker/swarm.py", line 170, in get_node_inspect
UnboundLocalError: local variable 'node_info' referenced before assignment
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
```
I've poked a bit at the code in github regarding this; I think this might be in lib/ansible/module_utils/docker/swarm.py around line 162. Probably an unhandled status_code? | https://github.com/ansible/ansible/issues/63353 | https://github.com/ansible/ansible/pull/63418 | 7f643690c7535c2623c52809cd27b3231b9f0fa7 | d753168e9d66cf4ddfaf5273bf7a3b9d065a00c2 | 2019-10-10T19:00:27Z | python | 2019-10-13T12:16:02Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,319 | ["changelogs/fragments/63371-mysql_info_add_exclude_fields_parameter.yml", "lib/ansible/modules/database/mysql/mysql_info.py", "test/integration/targets/mysql_info/aliases", "test/integration/targets/mysql_info/tasks/main.yml"] | mysql_info: change order of collecting and filtering items | <!--- Verify first that your feature was not already discussed on GitHub -->
<!--- Complete *all* sections as described, this form is processed automatically -->
##### SUMMARY
collect data based on the filters
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
mysql_info
##### ADDITIONAL INFORMATION
On large databases mysql_info runs very long due to size calculations of all db/tables even when this information is not needed (for example quering user information only)
<!--- 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/63319 | https://github.com/ansible/ansible/pull/63371 | 8b684644e0f30e180b690297abc04a67641a8c9c | c59e061cff2e883f566a31b4f88e62f2fbd680e7 | 2019-10-10T05:51:35Z | python | 2019-12-05T13:29:58Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,315 | ["lib/ansible/modules/cloud/amazon/lightsail.py"] | [aws lightsail] Delete operation is not idempotent | ##### SUMMARY
The delete operation of the `lightsail` module is not idempotent. If the instance is already deleted, then the task generates a traceback.
```
Traceback (most recent call last):
File "ansible/modules/cloud/amazon/lightsail.py", line 458, in main
File "ansible/modules/cloud/amazon/lightsail.py", line 422, in core
File "ansible/module_utils/common/dict_transformations.py", line 42, in camel_dict_to_snake_dict
for k, v in camel_dict.items():
AttributeError: 'NoneType' object has no attribute 'items'
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`lightsail`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.0.dev0
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
nothing
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Python 3.7.4
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- lightsail:
state: absent
name: my_instance
```
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Task successfully returns with `changed: false`.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Instead this traceback is generated -
<!--- Paste verbatim command output between quotes -->
```paste below
Traceback (most recent call last):
File "ansible/modules/cloud/amazon/lightsail.py", line 458, in main
File "ansible/modules/cloud/amazon/lightsail.py", line 422, in core
File "ansible/module_utils/common/dict_transformations.py", line 42, in camel_dict_to_snake_dict
for k, v in camel_dict.items():
AttributeError: 'NoneType' object has no attribute 'items'
```
| https://github.com/ansible/ansible/issues/63315 | https://github.com/ansible/ansible/pull/63317 | 94c23136be35ca5334945a66c1342863dd026fa4 | 275b3972cb147583bdd7cd394df708f9d97d7f84 | 2019-10-10T04:34:28Z | python | 2019-10-16T17:01:50Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,310 | ["changelogs/fragments/config_encoding_resilience.yml", "lib/ansible/config/manager.py", "lib/ansible/utils/py3compat.py"] | ConfigManager envvar decode failure is fatal | ##### SUMMARY
When ConfigManager is decoding config envvar values, if the value is not decode-able based on current LC_ALL/LANG settings, the error is fatal.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
ConfigManager
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.9.0rc3
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
NA
```
##### 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
04:42 + LC_ALL=C
04:42 + LANG=C
04:42 + ansible-playbook test_connection.yml -i ../connection_chroot/test_connection.inventory -e target_hosts=chroot -e action_prefix= -e local_tmp=/tmp/ansible-local -e remote_tmp=/tmp/ansible-remote -vvvvvv
04:42 Unhandled error:
04:42 Traceback (most recent call last):
04:42 File "/root/ansible/lib/ansible/config/manager.py", line 550, in update_config_data
04:42 value, origin = self.get_config_value_and_origin(config, configfile)
04:42 File "/root/ansible/lib/ansible/config/manager.py", line 453, in get_config_value_and_origin
04:42 value, origin = self._loop_entries(py3compat.environ, defs[config]['env'])
04:42 File "/root/ansible/lib/ansible/config/manager.py", line 393, in _loop_entries
04:42 temp_value = container.get(name, None)
04:42 File "/usr/lib64/python2.7/_abcoll.py", line 363, in get
04:42 return self[key]
04:42 File "/root/ansible/lib/ansible/utils/py3compat.py", line 50, in __getitem__
04:42 nonstring='passthru', errors='surrogate_or_strict')
04:42 File "/root/ansible/lib/ansible/module_utils/_text.py", line 235, in to_text
04:42 return obj.decode(encoding, errors)
04:42 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 69: ordinal not in range(128)
04:42
04:42
04:42 Traceback (most recent call last):
04:42 File "/root/ansible/bin/ansible-playbook", line 62, in <module>
04:42 import ansible.constants as C
04:42 File "/root/ansible/lib/ansible/constants.py", line 174, in <module>
04:42 config = ConfigManager()
04:42 File "/root/ansible/lib/ansible/config/manager.py", line 290, in __init__
04:42 self.update_config_data()
04:42 File "/root/ansible/lib/ansible/config/manager.py", line 562, in update_config_data
04:42 raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config, to_native(e)), orig_exc=e)
04:42 ansible.errors.AnsibleError: Invalid settings supplied for PLAYBOOK_DIR: 'ascii' codec can't decode byte 0xc3 in position 69: ordinal not in range(128)
```
| https://github.com/ansible/ansible/issues/63310 | https://github.com/ansible/ansible/pull/63311 | 9d014778adcdbbfeca6531c2c4db4121e362c8d2 | 77de663879bcf2f6ab82d5009b8a0b799814750b | 2019-10-09T23:17:02Z | python | 2019-10-10T00:08:29Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,302 | ["test/integration/targets/vmware_guest_network/tasks/main.yml"] | vmware_guest_network: fails with a backtrace if static MAC starts with '00:50:56' | ##### SUMMARY
<!--- Explain the problem briefly below -->
hi @pgbidkar and @Tomorrow9.
If I use the following task:
```yaml
- name: add new network adapters to virtual machine
vmware_guest_network:
validate_certs: False
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
name: test_vm1
networks:
- name: "VM Network"
state: new
device_type: e1000e
manual_mac: "00:50:56:58:59:60"
- name: "VM Network"
state: new
device_type: vmxnet3
manual_mac: "00:50:56:58:59:61"
register: add_netadapter
```
I get the following error: [add_nic.txt](https://github.com/ansible/ansible/files/3709181/add_nic.txt)
If I remove the `manual_mac` keys, everything works fine.
I create the Fedora 30 VM with:
```yaml
- name: Create VMs
vmware_guest:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
datacenter: "{{ dc1 }}"
validate_certs: no
folder: '/DC0/vm/F0'
name: test_vm1
state: poweredon
guest_id: centos7_64Guest
disk:
- size_gb: 1
type: thin
datastore: '{{ ds2 }}'
hardware:
version: latest
memory_mb: 1024
num_cpus: 1
scsi: paravirtual
cdrom:
type: iso
iso_path: "[{{ ds1 }}] fedora.iso"
networks:
- name: VM Network
```
I've tried several hardware.version/guest_id combination, without any difference. My lab is set-up as described here: https://docs.ansible.com/ansible/devel/dev_guide/platforms/vmware_guidelines.html
My vcenter set-up:
```shell
$ govc ls '/**/**/**'
/DC0/vm/F0/test_vm1
/DC0/network/VM Network
/DC0/host/DC0_C0/Resources
/DC0/host/DC0_C0/esxi1.test
/DC0/host/DC0_C0/esxi2.test
/DC0/datastore/LocalDS_0
/DC0/datastore/LocalDS_1
/DC0/datastore/datastore1 (1)
/DC0/datastore/datastore1
```
##### 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_network
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
devel
```
| https://github.com/ansible/ansible/issues/63302 | https://github.com/ansible/ansible/pull/63336 | 7de70bde5220ec983790870ea655859bcef44741 | add74fd24b4ae530c026c34ef2cce4d69121d537 | 2019-10-09T20:27:51Z | python | 2019-10-10T17:26:47Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,291 | ["lib/ansible/modules/net_tools/nmcli.py"] | libnm-glib-dev used by nmcli is deprecated in Debian 10 | <!--- 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
`nmcli` module use deprecated lib, at least in Debian Buster
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
nmcli
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /workspace/ansible.cfg
configured module search path = ['/workspace/library']
ansible python module location = /home/vscode/pyvenv/lib/python3.7/site-packages/ansible
executable location = /home/vscode/pyvenv/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
ANSIBLE_SSH_ARGS(/workspace/ansible.cfg) = -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
DEFAULT_ACTION_PLUGIN_PATH(/workspace/ansible.cfg) = ['/workspace/plugins/action']
DEFAULT_MODULE_PATH(/workspace/ansible.cfg) = ['/workspace/library']
DEFAULT_REMOTE_USER(/workspace/ansible.cfg) = root
DEFAULT_ROLES_PATH(/workspace/ansible.cfg) = ['/workspace/roles']
DEFAULT_STDOUT_CALLBACK(/workspace/ansible.cfg) = debug
DISPLAY_SKIPPED_HOSTS(/workspace/ansible.cfg) = False
HOST_KEY_CHECKING(/workspace/ansible.cfg) = False
INTERPRETER_PYTHON(/workspace/ansible.cfg) = /usr/bin/python3
RETRY_FILES_ENABLED(/workspace/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Debian 10.1
##### 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
connection: local
vars:
nm_packages:
- dbus
- libnm-dev
- network-manager
- network-manager-dev
- python3-dbus
- python3-gi
tasks:
- name: packages
apt:
force_apt_get: true
name: "{{ nm_packages }}"
state: present
- name: interface
nmcli:
conn_name: "{{ ansible_default_ipv4.interface }}"
type: ethernet
ifname: "{{ ansible_default_ipv4.interface }}"
ip4: 10.0.0.10/24
gw4: 10.0.0.1
dns4: 10.0.0.1
autoconnect: true
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 -->
It should have configured the network interface through nmcli.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
TASK [network : interface] *****************************************************
'False' (type string). If this does not look like what you expect, quote the
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: Namespace NMClient not available entire value to ensure it does not change.
fatal: [default]: FAILED! => {
"changed": false
}
MSG:
Failed to import the required Python library (NetworkManager glib API) on ubicast-dga-aio's Python /usr/bin/python3. Please read module documentation and install in the appropriate location
```
| https://github.com/ansible/ansible/issues/63291 | https://github.com/ansible/ansible/pull/65726 | 7ee3103a86f0179faead92d2481ff175d9a69747 | 663171e21820f1696b93c3f182626b0fd006b61b | 2019-10-09T17:58:16Z | python | 2019-12-21T05:58:58Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,290 | ["lib/ansible/modules/network/eos/eos_logging.py", "test/integration/targets/eos_logging/tests/cli/basic.yaml"] | eos_logging : Logging configuration fails on not passing 'dest' | **SUMMARY**
```
While trying to configure 'logging facility local7' on an Arista EOS switch, following commands are pushed into the switch:
['logging facility local7', 'logging None']
Expected is only 'logging facility local7'
Because of this the playbook is failing.
```
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
```
eos_logging.py
```
##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/gosriniv/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/gosriniv/ansible/lib/ansible
executable location = /home/gosriniv/ansible/bin/ansible
python version = 3.6.5 (default, Sep 4 2019, 12:23:33) [GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
```
##### CONFIGURATION
##### OS / ENVIRONMENT
```
"Arista vEOS"
```
##### STEPS TO REPRODUCE
```
---
- hosts: eos
gather_facts: false
connection: network_cli
tasks:
- name: Set up logging facility
eos_logging:
facility: local7
become: yes
register: result
- assert:
that:
- 'result.changed == true'
- '"logging facility local7" in result.commands'
```
##### EXPECTED RESULTS
Expectation is that there should not be any failure
##### ACTUAL RESULTS
```
fatal: [10.8.38.31]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"data": "logging None\r\n% Invalid input\r\nfoo(config-s-ansibl)#",
"invocation": {
"module_args": {
"aggregate": null,
"auth_pass": null,
"authorize": null,
"dest": null,
"facility": "local7",
"host": null,
"level": null,
"name": null,
"password": null,
"port": null,
"provider": null,
"size": null,
"ssh_keyfile": null,
"state": "present",
"timeout": null,
"transport": null,
"use_ssl": null,
"username": null,
"validate_certs": null
}
},
"msg": "logging None\r\n% Invalid input\r\nfoo(config-s-ansibl)#"
}
```
| https://github.com/ansible/ansible/issues/63290 | https://github.com/ansible/ansible/pull/63308 | 88013e7159bdaf0ae1198aee736cfd04689503a2 | 6d7620b646ca4cf53a9febfa3eb4c9576a886acf | 2019-10-09T17:38:23Z | python | 2019-10-16T13:47:46Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,281 | ["lib/ansible/galaxy/api.py", "test/units/galaxy/test_api.py"] | ansible-galaxy makes URL requests that always cause unnecessary redirects |
##### SUMMARY
<!--- Explain the problem briefly below -->
For a collection install command like `ansible-galaxy collection install -s automation_hub_ci google.cloud`, ansible-galaxy ends up making requests to API endpoints that should end with a trailing slash but ansible-galaxy drops the trailing slash.
On the server side, galaxy issues a 302 redirect to the location with the URL with the trailing slash appended. And ansible-galaxy follows it correctly.
For example,
ansible-galaxy makes the request:
`https://ci.cloud.redhat.com/api/automation-hub/v3/collections/cloud/google/versions`
which returns a 302 redirect response pointing to:
`https://ci.cloud.redhat.com/api/automation-hub/v3/collections/cloud/google/versions/'
But the redirect is superfluous and slows things down a bit. Depending on conditions, each redirect may take between 100ms and 500ms.
But that's 100-500ms additional per collection being installed.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible-galaxy
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.0.dev0
config file = /home/adrian/src/ansible/ansible.cfg
configured module search path = ['/home/adrian/ansible/my-modules']
ansible python module location = /home/adrian/src/ansible/lib/ansible
executable location = /home/adrian/src/ansible/bin/ansible
python version = 3.6.9 (default, Jul 3 2019, 17:57:57) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
ansible-ah-example.cfg:
```paste below
[defaults]
log_path = $HOME/.ansible/log/ansible.log
[galaxy]
server_list = automation_hub_ci, galaxy
[galaxy_server.automation_hub_ci]
url=https://ci.cloud.redhat.com/api/automation-hub/
# auth_url=https://sso.qa.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
# Fill in your auth info here
# username=
# password=
# token=
[galaxy_server.galaxy]
url=https://galaxy.ansible.com/api/
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
fedora 30-ish, x86_64
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```yaml
```
`ANSIBLE_CONFIG=ansible-ah-example.cfg ansible-galaxy collection install -s automation_hub_ci google.cloud`
You may need to use a web debugging tool like mitmproxy to see the additional
requests. AFAIK, that info isn't shown any any ansible log/verbose/debug level.
##### EXPECTED RESULTS
One request per galaxy resources needed
##### ACTUAL RESULTS
A request to the wrong url (no trailing slash), that is then followed to correct location
<!--- 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/63281 | https://github.com/ansible/ansible/pull/63294 | 66550cd3c27cd1bb72c46a573d055803e7d8f1f0 | d1c39b90686d10d4c561ebf96ca72db2e81fe3ff | 2019-10-09T14:47:14Z | python | 2020-01-08T20:25:40Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,267 | ["lib/ansible/modules/windows/win_pester.ps1", "lib/ansible/modules/windows/win_pester.py", "test/integration/targets/win_pester/defaults/main.yml", "test/integration/targets/win_pester/tasks/test.yml"] | win_pester - Add the possibility to generate a test result xml file #4 |
##### SUMMARY
To be able to show the tests results in the CI, it would be great if we could output the tests results as an xml file :
https://github.com/pester/Pester/wiki/Showing-Test-Results-in-CI-%28TeamCity%2C-AppVeyor%2C-Azure-DevOps%29
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
`win_pester`
##### ADDITIONAL INFORMATION
The usage of this module would match the following playbook :
```yaml
- name: Get facts
setup:
- name : Copy test file(s)
win_copy:
src: "{{ item }}"
dest: "{{ remote_test_folder[0] }}"
with_items: "{{local_test_files}}"
- name: Add Pester module
action:
module_name: "{{ 'win_psmodule' if ansible_powershell_version >= 5 else 'win_chocolatey' }}"
name: Pester
state: present
- name: Run the pester test present in a folder and check the Pester module version.
win_pester:
path: C:\Pester\
version: 4.1.0
output_file: C:\Pester\TestsResults.xml
output_format: JUnitXML
- name: Store file into /tmp
fetch:
src: C:\Pester\TestsResults.xml
dest: /tmp/TestsResults.xml
```
| https://github.com/ansible/ansible/issues/63267 | https://github.com/ansible/ansible/pull/63583 | c0331053dbe7d1ae52627c32c9e1bf25b6357402 | 4bf79de8a65b5bb8bddeff3d328adbd49a8dd19b | 2019-10-09T08:03:51Z | python | 2019-11-12T06:13:52Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,242 | ["lib/ansible/modules/system/nosh.py"] | Nosh module return value for `status` should be a sample, not "contains" | <!--- 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
In the nosh module's return documentation, the description of the `status` field isn't helpful:

That section is built from https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/system/nosh.py#L138-L187. The content there should be a sample of the return values, not a `contains` entry.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
docs.ansible.com
nosh
##### ANSIBLE VERSION
2.10
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
| https://github.com/ansible/ansible/issues/63242 | https://github.com/ansible/ansible/pull/63303 | 7f4befdea77045fa83b5f2b304bd5e16b219f74c | df283788e562470741ebed15dc4374190316c352 | 2019-10-08T16:29:08Z | python | 2019-10-11T16:07:53Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,231 | ["changelogs/fragments/70056-add-a-param-to-apt-module-to-avoid-unintended-uninstalls.yml", "lib/ansible/modules/apt.py", "test/integration/targets/apt/tasks/apt.yml"] | apt uninstalls packages and breaks machine | ##### SUMMARY
When doing a harmless apt install for a package, this might uninstall other packages and break stuff heavy, especially if there are lots of pending upgrades.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
apt
##### ANSIBLE VERSION
```
ansible 2.8.2
config file = /home/alexg/mw-config/ansible.cfg
configured module search path = [u'/home/alexg/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/alexg/.local/lib/python2.7/site-packages/ansible
executable location = /home/alexg/.local/bin/ansible
python version = 2.7.15+ (default, Jul 9 2019, 16:51:35) [GCC 7.4.0]
```
##### CONFIGURATION
```
DEFAULT_CALLBACK_PLUGIN_PATH(/home/alexg/mw-config/ansible.cfg) = [u'/home/alexg/mw-config/ansible/plugins/callback']
DEFAULT_CALLBACK_WHITELIST(/home/alexg/mw-config/ansible.cfg) = [u'zabbix']
DEFAULT_HOST_LIST(/home/alexg/mw-config/ansible.cfg) = [u'/home/alexg/mw-config/inventory']
DEFAULT_ROLES_PATH(/home/alexg/mw-config/ansible.cfg) = [u'/home/alexg/mw-config/roles']
DEFAULT_STDOUT_CALLBACK(/home/alexg/mw-config/ansible.cfg) = nice_failures
```
##### OS / ENVIRONMENT
target server was a debian machine, pending an upgrade stretch->buster
##### STEPS TO REPRODUCE
Just running something like
```yaml
- name: "Install some packages"
apt:
name: vim
state: present
update_cache: yes
```
can make the underlying apt uninstall some packages, depending on the current apt status. In this case installation of 4 basic packages on the machine with 600+ packages pending upgrade caused apt to uninstalled the VM hypervisor...
##### EXPECTED RESULTS
Need more control on dependency handling:
default should be to install package + requirements, but never uninstall other packages. That should get a separate option.
Alternative would be to fail when there is a uninstall going to happen, or just fail when there are pending upgrades at all.
##### ACTUAL RESULTS
Uninstalled libvirtd, shtudown of 5 VMs...Can't reproduce right now, because had to rush to fix it.
I guess this is obvious behaviour when you run apt install -y $package. | https://github.com/ansible/ansible/issues/63231 | https://github.com/ansible/ansible/pull/70056 | b05e00e99a91b08cc2de95c6e151c9eb268a01d5 | 4997063b4afb05561ee9aa6de2b815dfcffffc3d | 2019-10-08T13:11:03Z | python | 2020-06-30T13:53:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,225 | ["lib/ansible/modules/cloud/ovirt/ovirt_vm.py"] | [ovirt_vm] Provide possibility to change Display keyboard-layout | <!--- 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 -->
I would like to be able to set the keyboard layout for graphical console through ansible, as it's already possible via API and UI
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/rest_api_guide/types#types-display
==> keyboard_layout
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
ovirt_vm
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
In countries like Germany, I would like to setup the keyboard layout native to german. This is possible by API and UI, but not using ansible.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
ovirt_vm:
graphical_console:
protocol:
- vnc
keyboard_layout: de_DE
```
<!--- HINT: You can also paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/63225 | https://github.com/ansible/ansible/pull/63230 | 67d9cc45bde602b43c93ede4fe0bf5bb2b51a184 | 35c3d831fb81fc4f7bddd2d5251d046e8c8a7727 | 2019-10-08T11:00:00Z | python | 2019-10-08T15:12:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,222 | ["changelogs/fragments/vmware_guest_custom_attributes.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/cloud/vmware/vmware_guest_custom_attributes.py"] | vmware_guest_custom_attributes does not accept uuid only | <!--- 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
Documentation states, that uuid is required if name is not set but the play fails with an error that a required argument (name) is missing.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vmware_guest_custom_attributes
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
$ ansible --version
ansible 2.8.5
config file = /Users/oha/.ansible.cfg
configured module search path = ['/Users/oha/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/oha/venv/ansible/lib/python3.7/site-packages/ansible
executable location = /Users/oha/venv/ansible/bin/ansible
python version = 3.7.4 (default, Sep 7 2019, 18:27:02) [Clang 10.0.1 (clang-1001.0.46.4)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
HOST_KEY_CHECKING(/Users/oha/.ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Mac OS 10.14
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
---
```
- hosts: all
connection: local
gather_facts: True
tasks:
- debug:
msg: "{{ config.instanceuuid }}"
- debug:
msg: "{{ config.name }}"
- name: Set virtual machine custom attributes using name
vmware_guest_custom_attributes:
validate_certs: False
state: present
name: "{{ config.name }}"
attributes:
- name: CreatedBy
value: myuser
- name: CreatedOn
value: "{{ ansible_date_time.date }}"
- name: Set virtual machine custom attributes using uuid
vmware_guest_custom_attributes:
validate_certs: False
state: present
use_instance_uuid: True
uuid: "{{ config.instanceuuid }}"
attributes:
- name: CreatedBy
value: myuser
- name: CreatedOn
value: "{{ ansible_date_time.date }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
That all tasks are executed with state OK
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
PLAY [all] ********************************************************************************************************************************************************************************************************************************************************************
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [virtualmachine09_4227e011-59a6-7730-4191-3192cce23b35] => {
"msg": "5027c056-98e0-7923-d25b-e37b628a8960"
}
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [virtualmachine09_4227e011-59a6-7730-4191-3192cce23b35] => {
"msg": "virtualmachine09"
}
TASK [Set virtual machine custom attributes using name] ***********************************************************************************************************************************************************************************************************************
changed: [virtualmachine09_4227e011-59a6-7730-4191-3192cce23b35]
TASK [Set virtual machine custom attributes using uuid] ***********************************************************************************************************************************************************************************************************************
fatal: [virtualmachine09_4227e011-59a6-7730-4191-3192cce23b35]: FAILED! => {"changed": false, "msg": "missing required arguments: name"}
PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************
virtualmachine09_4227e011-59a6-7730-4191-3192cce23b35 : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/63222 | https://github.com/ansible/ansible/pull/63320 | b3deab4319fe1e793d36307093e1639a49c28175 | 35cc228b3b4f8526c71a72589c26d4a357cae402 | 2019-10-08T06:37:57Z | python | 2019-10-10T21:25:20Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,156 | ["lib/ansible/modules/cloud/azure/azure_rm_keyvaultkey_info.py"] | azure_rm_keyvaultkey_info AttributeError: 'AzureRMKeyVaultKeyInfo' object has no attribute 'vault' | <!--- 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 -->
Attribute error not found when listing deleted keys
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
azure_rm_keyvaultkey_info
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0rc2
config file = /Users/imjoseangel/Documents/source/sandbox/ansible.cfg
configured module search path = ['/Users/imjoseangel/Documents/source/sandbox/library']
ansible python module location = /Users/imjoseangel/.pyenv/versions/3.7.4/Python.framework/Versions/3.7/lib/python3.7/site-packages/ansible
executable location = /Users/imjoseangel/.pyenv/versions/3.7.4/bin/ansible
python version = 3.7.4 (default, Sep 10 2019, 20:21:02) [Clang 10.0.1 (clang-1001.0.46.4)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_SSH_ARGS(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = -o StrictHostKeyChecking=no
CACHE_PLUGIN(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = memcached
CACHE_PLUGIN_TIMEOUT(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = 86400
DEFAULT_CALLBACK_WHITELIST(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['timer', 'profile_tasks']
DEFAULT_FILTER_PLUGIN_PATH(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['/Users/imjoseangel/Documents/
DEFAULT_FORKS(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = 25
DEFAULT_GATHERING(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = smart
DEFAULT_HASH_BEHAVIOUR(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = merge
DEFAULT_HOST_LIST(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['/Users/imjoseangel/Documents/source/sa
DEFAULT_INTERNAL_POLL_INTERVAL(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = 0.001
DEFAULT_LOOKUP_PLUGIN_PATH(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['/Users/imjoseangel/Documents/
DEFAULT_MANAGED_STR(/Users/imjoseangel/Documents/source/sandbox/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(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['/Users/imjoseangel/Documents/source/
DEFAULT_POLL_INTERVAL(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = 5
DEFAULT_ROLES_PATH(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['/Users/imjoseangel/Documents/source/s
DEFAULT_TRANSPORT(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = smart
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /Users/imjoseangel/.ansible_password
HOST_KEY_CHECKING(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = False
INVENTORY_ENABLED(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = ['generator', 'host_list', 'script', 'ya
RETRY_FILES_ENABLED(/Users/imjoseangel/Documents/source/sandbox/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
MacOS with pyenv
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
<!--- Paste example playbooks or commands between quotes below -->
```json
{
"ANSIBLE_MODULE_ARGS": {
"vault_uri": "https://myvault.vault.azure.net/",
"show_deleted_key": "True"
}
}
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
List of deleted keys on keyvault
##### 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 "library/azure_rm_keyvaultkey_info.py", line 457, in <module>
main()
File "library/azure_rm_keyvaultkey_info.py", line 453, in main
AzureRMKeyVaultKeyInfo()
File "library/azure_rm_keyvaultkey_info.py", line 272, in __init__
supports_tags=False)
File "/Users/imjoseangel/.pyenv/versions/3.7.4/Python.framework/Versions/3.7/lib/python3.7/site-packages/ansible/module_utils/azure_rm_common.py", line 325, in __init__
res = self.exec_module(**self.module.params)
File "library/azure_rm_keyvaultkey_info.py", line 293, in exec_module
self.results['keys'] = self.list_deleted_keys()
File "library/azure_rm_keyvaultkey_info.py", line 437, in list_deleted_keys
response = self._client.get_deleted_keys(vault_base_url=self.vault)
AttributeError: 'AzureRMKeyVaultKeyInfo' object has no attribute 'vault'
```
| https://github.com/ansible/ansible/issues/63156 | https://github.com/ansible/ansible/pull/63157 | aa68f728fdd9b2b93da3da6a6b18a00b24cfe7e3 | 4745d4571163d6f25664afb60f47bd8ea0f3e4c4 | 2019-10-05T06:43:17Z | python | 2019-10-22T06:21:25Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,139 | ["changelogs/fragments/63140-acme-fix-fetch-url-status-codes.yaml", "lib/ansible/module_utils/acme.py"] | ACMEAccount.get_request does not fails and returns status -1 due to wrong .netrc permissions | <!--- 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 -->
I discovered an issue in the `ACMEAccount` `module_utils`. Due to wrong permissions on `.netrc` file, the `fetch_url` method returns status `-1`, which skip the error check and make function return as the call was successful.
This breaks `ACMEDirectory.__init__`, that reports an error in the ACME directory: `ACME directory does not seem to follow protocol ACME v2` (the same would happen with ACME v1 directory).
I was able to discover the issue by exploding the AnsiballZ, debugging [`ACMEAccount.get_request` method](https://github.com/ansible/ansible/blob/66de3d429f2454f8491f0633bf4298f3703c5db3/lib/ansible/module_utils/acme.py#L619) and discovering on line 657 the failing check:
https://github.com/ansible/ansible/blob/66de3d429f2454f8491f0633bf4298f3703c5db3/lib/ansible/module_utils/acme.py#L657
In this error case, the `info` dictionary had `status` value of `-1`:
```
{
"url": "https: //acme-v02.api.letsencrypt.org/directory",
"status": -1,
"msg": "An unknown error occurred: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/home/.../.netrc, line 3)",
"exception": "Traceback (most recent call last):
File "/home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/debug_dir/ansible/module_utils/urls.py", line 1359, in fetch_url
unix_socket=unix_socket)
File "/home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/debug_dir/ansible/module_utils/urls.py", line 1257, in open_url
use_gssapi=use_gssapi, unix_socket=unix_socket)
File "/home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/debug_dir/ansible/module_utils/urls.py", line 1090, in open
rc = netrc.netrc(os.environ.get(\"NETRC\"))
File "/home/.../.asdf/installs/python/3.7.2/lib/python3.7/netrc.py", line 30, in __init__
self._parse(file, fp, default_netrc)
File "/home/.../.asdf/installs/python/3.7.2/lib/python3.7/netrc.py", line 107, in _parse
" the owner", file, lexer.lineno)
netrc.NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/home/.../.netrc, line 3)
"
}
```
This value is not intercepted by the error check, which expect failures to have status greater than 400.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
- `module_utils/acme.py`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /home/etenani/code/github.com/bcmi-labs/operations/ansible.cfg
configured module search path = [u'/home/etenani/code/github.com/bcmi-labs/operations/modules']
ansible python module location = /home/etenani/.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible
executable location = /home/etenani/.local/share/virtualenvs/operations--a04GZk3/bin/ansible
python version = 2.7.16 (default, Sep 3 2019, 16:43:55) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_ACTION_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/action', u'/usr/share/ansible/plugins/action']
DEFAULT_CACHE_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/cache', u'/usr/share/ansible/plugins/cache']
DEFAULT_CALLBACK_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/callback', u'/usr/share/ansible/plugins/callback']
DEFAULT_CONNECTION_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/connection', u'/usr/share/ansible/plugins/connection']
DEFAULT_FILTER_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/filter', u'/usr/share/ansible/plugins/filter']
DEFAULT_GATHERING(/home/.../operations/ansible.cfg) = smart
DEFAULT_INVENTORY_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/inventory', u'/usr/share/ansible/plugins/inventory']
DEFAULT_KEEP_REMOTE_FILES(env: ANSIBLE_KEEP_REMOTE_FILES) = True
DEFAULT_LOOKUP_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/lookup', u'/usr/share/ansible/plugins/lookup']
DEFAULT_MODULE_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/modules']
DEFAULT_MODULE_UTILS_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/modules/utils']
DEFAULT_REMOTE_USER(/home/.../operations/ansible.cfg) = ansible
DEFAULT_ROLES_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/roles/community', u'/home/.../operations/roles']
DEFAULT_STRATEGY_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/strategy', u'/usr/share/ansible/plugins/strategy']
DEFAULT_TERMINAL_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/terminal', u'/usr/share/ansible/plugins/terminal']
DEFAULT_TEST_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/test', u'/usr/share/ansible/plugins/test']
DEFAULT_VARS_PLUGIN_PATH(/home/.../operations/ansible.cfg) = [u'/home/.../operations/plugins/vars', u'/usr/share/ansible/plugins/vars']
HOST_KEY_CHECKING(/home/.../operations/ansible.cfg) = False
INJECT_FACTS_AS_VARS(/home/.../operations/ansible.cfg) = True
RETRY_FILES_ENABLED(/home/.../operations/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
- Python 2.7.16
- OS
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
- create `$HOME/.netrc`
- set permissive permissions: `chmod 664 $HOME/.netrc`
- run `acme_account` module
<!--- Paste example playbooks or commands between quotes below -->
```yaml
# example task
- name: ACME account
acme_account:
state: present
terms_agreed: true
acme_directory: "{{ acme_parameters.directory }}"
acme_version: "{{ acme_parameters.version }}"
account_key_content: "{{ acme_account_key }}"
contact:
- "{{ acme_parameters.account_email }}"
```
<!--- 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 would expect the task to produce a clear error related to the problematic situation.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The task errors with an error related to the ACME directory being interrogated not supporting the ACME protocol.
This is the task output (with `-vvvv`):
```
TASK [tls-certificates : ACME account] ********************************************************************************************************************************************************************************************************
task path: /home/.../operations/roles/tls-certificates/tasks/main.yml:4
File lookup using /home/.../operations/roles/tls-certificates/files/accounts/acme-v02.api.letsencrypt.org/[email protected]/account.json as file
Sops lookup using /home/.../operations/roles/tls-certificates/files/accounts/acme-v02.api.letsencrypt.org/[email protected]/[email protected] as file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: etenani
<127.0.0.1> EXEC /bin/sh -c 'echo ~etenani && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542 `" && echo ansible-tmp-1570199461.7-3341753761542="` echo /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542 `" ) && sleep 0'
Using module file /home/.../.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible/modules/crypto/acme/acme_account.py
<127.0.0.1> PUT /home/.../.ansible/tmp/ansible-local-2816937gtWS/tmp07AMHJ TO /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/ /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/.../.local/share/virtualenvs/operations--a04GZk3/bin/python2.7 /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py && sleep 0'
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File "/tmp/ansible_acme_account_payload_CdfMSZ/__main__.py", line 180, in main
account = ACMEAccount(module)
File "/tmp/ansible_acme_account_payload_CdfMSZ/ansible_acme_account_payload.zip/ansible/module_utils/acme.py", line 500, in __init__
self.directory = ACMEDirectory(module, self)
File "/tmp/ansible_acme_account_payload_CdfMSZ/ansible_acme_account_payload.zip/ansible/module_utils/acme.py", line 452, in __init__
raise ModuleFailException("ACME directory does not seem to follow protocol ACME v2")
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"account_key_content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"account_key_src": null,
"account_uri": null,
"acme_directory": "https://acme-v02.api.letsencrypt.org/directory",
"acme_version": 2,
"allow_creation": true,
"contact": [
"REDACTED"
],
"new_account_key_content": null,
"new_account_key_src": null,
"select_crypto_backend": "auto",
"state": "present",
"terms_agreed": true,
"validate_certs": true
}
},
"msg": "ACME directory does not seem to follow protocol ACME v2",
"other": {}
}
```
<!--- Paste verbatim command output between quotes -->
<details>
<summary>Full output</summary>
```
ansible-playbook 2.8.5
config file = /home/.../operations/ansible.cfg
configured module search path = [u'/home/.../operations/modules']
ansible python module location = /home/.../.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible
executable location = /home/.../.local/share/virtualenvs/operations--a04GZk3/bin/ansible-playbook
python version = 2.7.16 (default, Sep 3 2019, 16:43:55) [GCC 5.4.0 20160609]
Using /home/.../operations/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/.../operations/inventories/prod/hosts as it did not pass it's verify_file() method
Not replacing invalid character(s) "set([u'-'])" in group name (us-east-1)
[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on deprecation. This feature will be removed in version 2.10.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
Parsed /home/.../operations/inventories/prod/hosts inventory source with script plugin
statically imported: /home/.../operations/roles/community/datadog/tasks/pkg-debian.yml
statically imported: /home/.../operations/roles/community/datadog/tasks/pkg-redhat.yml
statically imported: /home/.../operations/roles/community/datadog/tasks/pkg-suse.yml
statically imported: /home/.../operations/roles/community/datadog/tasks/agent5.yml
statically imported: /home/.../operations/roles/community/datadog/tasks/agent6.yml
Loading callback plugin default of type stdout, v2.0 from /home/.../.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
Loading callback plugin human_log of type notification, v2.0 from /home/.../operations/plugins/callback/human-stderr.pyc
PLAYBOOK: tower-certificates.yaml *************************************************************************************************************************************************************************************************************
Positional arguments: playbooks/tower-certificates.yaml
remote_user: ansible
become_method: sudo
inventory: (u'/home/.../operations/inventories/prod/hosts',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
timeout: 10
6 plays in playbooks/tower-certificates.yaml
PLAY [localhost] ******************************************************************************************************************************************************************************************************************************
key: all./home/.../operations/inventories/prod/group_vars
key: all./home/.../operations/playbooks/group_vars
key: localhost./home/.../operations/inventories/prod/host_vars
key: localhost./home/.../operations/playbooks/host_vars
TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************
task path: /home/.../operations/playbooks/tower-certificates.yaml:5
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: etenani
<127.0.0.1> EXEC /bin/sh -c 'echo ~etenani && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112 `" && echo ansible-tmp-1570199460.06-148859103532112="` echo /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112 `" ) && sleep 0'
Using module file /home/.../.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /home/.../.ansible/tmp/ansible-local-2816937gtWS/tmp2OAzkM TO /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112/ /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/.../.local/share/virtualenvs/operations--a04GZk3/bin/python2.7 /home/.../.ansible/tmp/ansible-tmp-1570199460.06-148859103532112/AnsiballZ_setup.py && sleep 0'
ok: [localhost]
META: ran handlers
key: all./home/.../operations/inventories/prod/group_vars
key: all./home/.../operations/playbooks/group_vars
key: localhost./home/.../operations/inventories/prod/host_vars
key: localhost./home/.../operations/playbooks/host_vars
TASK [tls-certificates : ACME account] ********************************************************************************************************************************************************************************************************
task path: /home/.../operations/roles/tls-certificates/tasks/main.yml:4
File lookup using /home/.../operations/roles/tls-certificates/files/accounts/acme-v02.api.letsencrypt.org/[email protected]/account.json as file
Sops lookup using /home/.../operations/roles/tls-certificates/files/accounts/acme-v02.api.letsencrypt.org/[email protected]/[email protected] as file
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: etenani
<127.0.0.1> EXEC /bin/sh -c 'echo ~etenani && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542 `" && echo ansible-tmp-1570199461.7-3341753761542="` echo /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542 `" ) && sleep 0'
Using module file /home/.../.local/share/virtualenvs/operations--a04GZk3/lib/python2.7/site-packages/ansible/modules/crypto/acme/acme_account.py
<127.0.0.1> PUT /home/.../.ansible/tmp/ansible-local-2816937gtWS/tmp07AMHJ TO /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/ /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/.../.local/share/virtualenvs/operations--a04GZk3/bin/python2.7 /home/.../.ansible/tmp/ansible-tmp-1570199461.7-3341753761542/AnsiballZ_acme_account.py && sleep 0'
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File "/tmp/ansible_acme_account_payload_CdfMSZ/__main__.py", line 180, in main
account = ACMEAccount(module)
File "/tmp/ansible_acme_account_payload_CdfMSZ/ansible_acme_account_payload.zip/ansible/module_utils/acme.py", line 500, in __init__
self.directory = ACMEDirectory(module, self)
File "/tmp/ansible_acme_account_payload_CdfMSZ/ansible_acme_account_payload.zip/ansible/module_utils/acme.py", line 452, in __init__
raise ModuleFailException("ACME directory does not seem to follow protocol ACME v2")
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"account_key_content": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"account_key_src": null,
"account_uri": null,
"acme_directory": "https://acme-v02.api.letsencrypt.org/directory",
"acme_version": 2,
"allow_creation": true,
"contact": [
"REDACTED"
],
"new_account_key_content": null,
"new_account_key_src": null,
"select_crypto_backend": "auto",
"state": "present",
"terms_agreed": true,
"validate_certs": true
}
},
"msg": "ACME directory does not seem to follow protocol ACME v2",
"other": {}
}
PLAY RECAP ************************************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
</details> | https://github.com/ansible/ansible/issues/63139 | https://github.com/ansible/ansible/pull/63140 | c782831dd7de046e369107a553c400e7cbce5a11 | 0d905a0496f4554a9de57cbd3ee90e30d6249b34 | 2019-10-04T15:42:14Z | python | 2019-10-29T18:44:25Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,127 | ["lib/ansible/plugins/doc_fragments/ovirt_info.py"] | [ovirt] clear up fetch_nested parameter works | ##### SUMMARY
We should document that by default we go only over first level attributes, not any other level of attribute and maybe ADD parameter which enables going deeper.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
ansible/lib/ansible/modules/cloud/ovirt/*_facts.py
##### ADDITIONAL INFORMATION
Discussion was originally raised in https://bugzilla.redhat.com/show_bug.cgi?id=1653743 | https://github.com/ansible/ansible/issues/63127 | https://github.com/ansible/ansible/pull/63191 | e9d29b1fe4285d90d7a4506b80260a9e24c3bcea | 0beab6bf699fc014aeb7bb74af7a692b2e7d462f | 2019-10-04T10:50:59Z | python | 2019-10-14T16:21:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,105 | ["changelogs/fragments/63105-wcswidth.yml", "lib/ansible/cli/scripts/ansible_cli_stub.py", "lib/ansible/utils/display.py", "test/units/utils/test_display.py"] | Wide glyphs cause padded asterisks to wrap | ##### SUMMARY
Wide glyphs in task names cause the asterisks in the output to wrap around to the next line. My guess is that Ansible is treating characters that take up two spaces as one. Example: 🚀 and 汉字.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ansible
##### ANSIBLE VERSION
```
ansible 2.8.5
config file = /home/major/git/cki-project-experimental/aws-deployment/ansible.cfg
configured module search path = ['/home/major/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/major/.pyenv/versions/3.7.4/envs/venv-3.7.4/lib/python3.7/site-packages/ansible
executable location = /home/major/.pyenv/versions/venv-3.7.4/bin/ansible
python version = 3.7.4 (default, Sep 20 2019, 07:35:42) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]
```
##### CONFIGURATION
```
(no config changes from defaults)
```
##### OS / ENVIRONMENT
Fedora 30 with Python 3.7.4
##### STEPS TO REPRODUCE
I ran a playbook that contains emojis:
```yaml
---
- hosts: localhost
gather_facts: no
tasks:
- name: "🚀 This name has emoji"
debug:
msg: "🚀 is a fun emoji"
- name: "汉字 This name has Chinese characters"
debug:
msg: "汉字 means 'Chinese character'"
```
##### EXPECTED RESULTS
I expected the asterisks to be the same length for all lines without wrapping.
##### ACTUAL RESULTS
The output is:
```
PLAY [deployer] *****************************************************************************
TASK [🚀 This name has emoji] ****************************************************************
Thursday 03 October 2019 11:03:41 -0500 (0:00:00.025) 0:00:00.025 ******
ok: [localhost] =>
msg: 🚀 is a fun emoji
TASK [汉字 This name has Chinese characters] **************************************************
Thursday 03 October 2019 11:03:41 -0500 (0:00:00.009) 0:00:00.035 ******
ok: [localhost] =>
msg: 汉字 means 'Chinese character'
PLAY RECAP **********************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
``` | https://github.com/ansible/ansible/issues/63105 | https://github.com/ansible/ansible/pull/66214 | 26e8c07f329dd436dda6d30efbe7e63b96e23ee8 | 1fedb95e4baf33ff0138c744792fadd43ec59206 | 2019-10-03T16:07:19Z | python | 2020-06-22T21:57:01Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,104 | ["lib/ansible/modules/files/xml.py"] | misdocumented - xml element's to check text value without escape delimiter for special chars | <!--- 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
<!--- Explain the problem briefly below, add suggestions to wording or structure -->
latest and devel documentation shows example to add escape characters for double quotes text.
i.e. to bypass " with \\". But this needs not to be done anymore with respect to the latest ansible version (ex. 2.8.5v)
Current example :
- name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element
xml:
path: /foo/bar.xml
xpath: '/business/beers/beer[text()=\\"Rochefort 10\\"]'
insertbefore: yes
add_children:
- beer: Old Rasputin
- beer: Old Motor Oil
- beer: Old Curmudgeon
Should be :
- name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element
xml:
path: /foo/bar.xml
xpath: '/business/beers/beer[text()="Rochefort 10"]'
insertbefore: yes
add_children:
- beer: Old Rasputin
- beer: Old Motor Oil
- beer: Old Curmudgeon
<!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? -->
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
<!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure -->
xml module (label:m:xml)
https://docs.ansible.com/ansible/latest/modules/xml_module.html
https://docs.ansible.com/ansible/devel/modules/xml_module.html
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
[vagrant@azure-controller playbooks]$ ansible --version
ansible 2.8.5
config file = /home/vagrant/.ansible.cfg
configured module search path = [u'/home/vagrant/.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, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
Not applicable
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. OS version, browser, etc. -->
Not applicable
##### ADDITIONAL INFORMATION
<!--- Describe how this improves the documentation, e.g. before/after situation or screenshots -->
before:
- name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element
xml:
path: /foo/bar.xml
xpath: '/business/beers/beer[text()=\\"Rochefort 10\\"]'
insertbefore: yes
add_children:
- beer: Old Rasputin
- beer: Old Motor Oil
- beer: Old Curmudgeon
after:
- name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element
xml:
path: /foo/bar.xml
xpath: '/business/beers/beer[text()="Rochefort 10"]'
insertbefore: yes
add_children:
- beer: Old Rasputin
- beer: Old Motor Oil
- beer: Old Curmudgeon
<!--- HINT: You can paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/63104 | https://github.com/ansible/ansible/pull/63128 | 66de3d429f2454f8491f0633bf4298f3703c5db3 | 82a6f9d198bd428fc3ebb14baa19b503fc827fbc | 2019-10-03T16:06:28Z | python | 2019-10-04T12:56:39Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,091 | ["lib/ansible/modules/network/ios/ios_banner.py", "test/integration/targets/ios_banner/tests/cli/multiple-login-exec.yaml", "test/units/modules/network/ios/fixtures/ios_banner_show_running_config_ios12.txt", "test/units/modules/network/ios/test_ios_banner.py"] | ios_banner: unneeded change when multiple banners are configured in IOS 12.x | <!--- 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 multiple banners are present in a configuration and if the device does not support the "show banner" command, ios_banner incorrectly detects a change is needed in all banners but the last.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ios_banner
##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/kalimsshar/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/kalimsshar/dev/ansible/ansible/lib/ansible
executable location = /home/kalimsshar/dev/ansible/ansible/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### CONFIGURATION
N/A (no output from "ansible-config dump --only-changed")
##### OS / ENVIRONMENT
Tested on multiple Cisco devices (switches and routers) using IOS 12.x with ansible running on Centos 7.7.1908
##### STEPS TO REPRODUCE
Create a playbook as follow, using the same banners that the ones on the Cisco device.
```yaml
---
- hosts: Switch1
gather_facts: no
vars:
ansible_connection: network_cli
ansible_network_os: ios
tasks:
- name: "set login banner"
ios_banner:
banner: login
text: |
*********************************************
* *
* Actual banner configured on device *
* *
*********************************************
state: present
- name: "set exec banner"
ios_banner:
banner: exec
text: |
*********************************************
* *
* Actual banner configured on device *
* *
*********************************************
state: present
```
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Expected for ios_banner to detect no change is needed.
```
$ ansible-playbook -k -i hosts.ini banner.yml
SSH password:
TASK [set login banner] **********************************************************************************************************************************************************************************************
ok: [Switch1]
TASK [set exec banner] ***********************************************************************************************************************************************************************************************
ok: [Switch1]
PLAY RECAP ***********************************************************************************************************************************************************************************************************
Switch1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```
$ ansible-playbook -k -i hosts.ini banner.yml
SSH password:
TASK [set login banner] **********************************************************************************************************************************************************************************************
ok: [Switch1]
TASK [set exec banner] ***********************************************************************************************************************************************************************************************
changed: [Switch1]
PLAY RECAP ***********************************************************************************************************************************************************************************************************
Switch1 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/63091 | https://github.com/ansible/ansible/pull/63092 | 9d91e6275e248ead120cb36b8912c00a28e4c95b | 01a92f0191de904ca8351cbfd1516e1aee874372 | 2019-10-03T14:31:55Z | python | 2019-10-25T18:20:00Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,077 | ["changelogs/fragments/65750-pacman.yml", "lib/ansible/modules/packaging/os/pacman.py"] | Package (or pacman) break: "IndexError: list index out of range" on ansible devel | ##### SUMMARY
When using Ansible devel (`pip install git+https://github.com/ansible/ansible.git@devel`) to install software using `package` (likely passed to `pacman` module) and looping over a list of packages, an error is display
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
package
pacman
##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
```
##### CONFIGURATION
```paste below
(empty)
```
##### OS / ENVIRONMENT
controler: ubuntu (on travis)
managed node: Archlinux in a container
##### STEPS TO REPRODUCE
Have a look at [the build](https://travis-ci.org/robertdebock/ansible-role-at/jobs/592714211#L834) and [the code](- name: install bootstrap_facts_packages)
##### EXPECTED RESULTS
No errors.
##### ACTUAL RESULTS
```paste below
835 An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range
836 failed: [at-archlinux] (item=python3) => changed=false
837 ansible_loop_var: item
838 item: python3
839 module_stderr: |-
840 Traceback (most recent call last):
841 File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 102, in <module>
842 _ansiballz_main()
843 File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 94, in _ansiballz_main
844 invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
845 File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 40, in invoke_module
846 runpy.run_module(mod_name='ansible.modules.packaging.os.pacman', init_globals=None, run_name='__main__', alter_sys=False)
847 File "/usr/lib/python3.7/runpy.py", line 208, in run_module
848 return _run_code(code, {}, init_globals, run_name, mod_spec)
849 File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
850 exec(code, run_globals)
851 File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 500, in <module>
852 File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 492, in main
853 File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 341, in install_packages
854 IndexError: list index out of range
855 module_stdout: ''
856 msg: |-
857 MODULE FAILURE
858 See stdout/stderr for the exact error
859 rc: 1
```
| https://github.com/ansible/ansible/issues/63077 | https://github.com/ansible/ansible/pull/65750 | 3baea92ec94c55b04d2986096ddf49440d60eca3 | 14b1febf64f03d5d1b7b02acb7749055accd12fc | 2019-10-03T04:34:18Z | python | 2020-02-01T13:37:27Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,045 | ["changelogs/fragments/66692-vmware_host_vmhba_info_fix_63045.yml", "lib/ansible/modules/cloud/vmware/vmware_host_vmhba_info.py"] | vmware_host_vmhba_facts and vmware_host_vmhba_info truncate WWN of FC HBA | <!--- 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 -->
vmware_host_vmhba_facts module returns the decimal formatted WWN/WWPN of the FiberChannel HBA, but truncates the last digit, making it impossible to convert to hex or determine the real HBA WWPN for zoning/mapping. even the help text of the module on the https://docs.ansible.com/ansible/latest/modules/vmware_host_vmhba_facts_module.html site displays the truncated value that is useless.
##### 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_host_vmhba_facts and vmware_host_vmhba_info modules
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible --version
ansible 2.8.4
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, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### 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. -->
VMware ESXi, 6.7.0
VMWare ESXi, 6.5.0
QLogic 57840 10/20 Gigabit Ethernet Adapter "driver": "qfle3f",
CentOS7
ansible 2.8
ansible 2.10
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
gather HBA data from ESX servers using the vmware_host_vmhba_info or vmware_host_vmhba_facts modules. The output of the port_wwn and node_wwn are returned in decimal format with colon separation and truncated by one character. For Example, 11:53:10:06:16:15:36:94:72 should be 11:53:10:06:16:15:36:94:725. The colons are not needed since this is a decimal value, which may also be a module problem. They are even truncated in the example help text of the module (576496321590239521)!!! , showing this hasn't been tested properly since the beginning of module creation and has been a bug since inception! This same bug is present on the newest version of the module in ansbile 2.10 currently in development as well.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Gather vmware host HBA facts from vCenter
vmware_host_vmhba_info:
cluster_name: '{{ cluster }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
hostname: '{{ vcenter_hostname }}'
validate_certs: no
register: host_facts
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 -->
Expected the decimal number representation of the WWN returned by vmware to be returned in full so that it could be converted to HEX and to the actual WWPN/WWN for zoning/mapping/etc. port_wwn value should return enough digits to display the fiberchannel wwn in full.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The decimal formatted number is returned with a truncated last digit, making the value invalid and it cannot be converted to HEX format.
<!--- Paste verbatim command output between quotes -->
```paste below
TASK [Gather vmware host HBA facts from vCenter] *************************************************************************************************************************************************************************************
task path: /root/hbagather.yml:24
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052 `" && echo ansible-tmp-1570019424.92-77457880685052="` echo /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052 `" ) && sleep 0'
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_host_vmhba_info.py
<localhost> PUT /root/.ansible/tmp/ansible-local-776496XYTxD/tmpPFZa23 TO /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052/AnsiballZ_vmware_host_vmhba_info.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052/ /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052/AnsiballZ_vmware_host_vmhba_info.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052/AnsiballZ_vmware_host_vmhba_info.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1570019424.92-77457880685052/ > /dev/null 2>&1 && sleep 0'
ok: [localhost -> localhost] => {
"changed": false,
"hosts_vmhbas_info": {
"hostname.example.com": {
"vmhba_details": [
{
"adapter": "HPE Smart Array P220i",
"bus": 34,
"device": "vmhba0",
"driver": "nhpsa",
"location": "0000:22:00.0",
"model": "Smart Array P220i",
"node_wwn": "50:01:43:80:32:53:90:a0",
"status": "unknown",
"type": "SAS"
},
{
"adapter": "Broadcom Corporation QLogic 57840 10/20 Gigabit Ethernet Adapter",
"bus": 2,
"device": "vmhba32",
"driver": "bnx2fc",
"location": "0000:02:00.2",
"model": "QLogic 57840 10/20 Gigabit Ethernet Adapter",
"node_wwn": "11:53:10:06:16:15:36:94:72",
"port_type": "unknown",
"port_wwn": "11:53:10:06:16:15:36:94:72",
"speed": 0,
"status": "online",
"type": "FibreChannelOverEthernetHba"
},
{
"adapter": "Broadcom Corporation QLogic 57840 10/20 Gigabit Ethernet Adapter",
"bus": 2,
"device": "vmhba33",
"driver": "bnx2fc",
"location": "0000:02:00.3",
"model": "QLogic 57840 10/20 Gigabit Ethernet Adapter",
"node_wwn": "11:53:04:10:85:47:50:56:04",
"port_type": "unknown",
"port_wwn": "23:05:96:25:90:08:19:03:01",
"speed": 0,
"status": "unknown",
"type": "FibreChannelOverEthernetHba"
},
{
"adapter": "Broadcom Corporation QLogic 57840 10/20 Gigabit Ethernet Adapter",
"bus": 33,
"device": "vmhba34",
"driver": "bnx2fc",
"location": "0000:21:00.2",
"model": "QLogic 57840 10/20 Gigabit Ethernet Adapter",
"node_wwn": "11:53:04:10:85:47:50:57:39",
"port_type": "unknown",
"port_wwn": "23:05:96:25:90:08:19:04:36",
"speed": 0,
"status": "unknown",
"type": "FibreChannelOverEthernetHba"
},
{
"adapter": "Broadcom Corporation QLogic 57840 10/20 Gigabit Ethernet Adapter",
"bus": 33,
"device": "vmhba35",
"driver": "bnx2fc",
"location": "0000:21:00.3",
"model": "QLogic 57840 10/20 Gigabit Ethernet Adapter",
"node_wwn": "11:53:10:06:16:15:36:94:72",
"port_type": "unknown",
"port_wwn": "11:53:10:06:16:15:36:94:72",
"speed": 0,
"status": "online",
"type": "FibreChannelOverEthernetHba"
}
]
},
```
| https://github.com/ansible/ansible/issues/63045 | https://github.com/ansible/ansible/pull/66692 | 5c1fe78685713707af6351838effe5912990981c | 65aedc5d4aee95a6a7983f208671f6c614b46e3c | 2019-10-02T13:00:44Z | python | 2020-01-28T04:16:29Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,024 | ["docs/docsite/README.md"] | [Docs][Doctoberfest] Update Ansible documentation readme to improve details | <!--- 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
<!--- Explain the problem briefly below, add suggestions to wording or structure -->
Ansible documentation contributors may not be fully familiar with Ansible or git. Update
https://github.com/ansible/ansible/blob/devel/docs/docsite/README.md
to include details similar to this template:
https://github.com/JStickler/doctoberfest/blob/master/doctoberfest/contributor/template_contributor.md
Strike a balance so that it doesn't repeat what is already in the "Contributing to the Ansible Documentation page at: - https://docs.ansible.com/ansible/latest/community/documentation_contributions.html
<!--- HINT: Did you know the documentation has an "Edit on GitHub" link on every page ? -->
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
<!--- Write the short name of the rst file, module, plugin, task or feature below, use your best guess if unsure -->
##### 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. OS version, browser, etc. -->
##### ADDITIONAL INFORMATION
<!--- Describe how this improves the documentation, e.g. before/after situation or screenshots -->
<!--- HINT: You can paste gist.github.com links for larger files -->
| https://github.com/ansible/ansible/issues/63024 | https://github.com/ansible/ansible/pull/63957 | 039c770a9539314e2703781d9c42da20ed5904fb | 5c962ef859b37ac3a9707a3e1ac88f4b34b78038 | 2019-10-01T17:47:53Z | python | 2019-10-28T17:04:59Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,018 | ["changelogs/fragments/win_find-performance.yaml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/windows/win_find.ps1", "lib/ansible/modules/windows/win_find.py", "test/integration/targets/win_find/tasks/tests.yml"] | Improve win_find Performance | <!--- 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 -->
Currently, win_find can take a significant amount of time to iterate through large collections of directories.
For example, the DLL directories in Windows show a significant variance in execution time with relatively similar disk space utilization
DLL directory at 3GB of disk space and 20,000 directories can take 10-15 minutes to complete a scan with win_find
DLL directory at 4GB of disk space and 120,000 directories can take over 6 hours to complete with win_find
##### 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_find.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 -->
Parameters:
```yaml
scan_dir_list:
- path: 'C:\Windows\System32'
scandir: true
recurse: true
pattern:
- '*.com'
- '*.exe'
- '*.dll'
- '*.ocx'
- '*.sys'
```
Task:
```yaml
- name: Get full list of files from directory
win_find:
paths: "{{ item.path }}"
get_checksum: true
recurse: "{{ item.recurse | default('false') }}"
patterns: "{{item.pattern | default(omit) }}"
use_regex: "{{ item.use_regex | default(omit) }}"
file_type: file
with_items: "{{ scan_dir_list }}"
register: find_file_list
ignore_errors: true
``` | https://github.com/ansible/ansible/issues/63018 | https://github.com/ansible/ansible/pull/65536 | 96cbbdd59fe82574b9292bf3cafe34bb8b9ceade | fcdebe41e99d8c32ba9219b66df3a65346200b46 | 2019-10-01T16:15:19Z | python | 2019-12-06T00:01:11Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,016 | ["docs/docsite/rst/user_guide/windows_winrm.rst"] | Update to Debian 10 broke WinRM Kerberos connection | ##### SUMMARY
After updating from Debian 9 to Debian 10 my previously working setup for connecting to Windows Machines using WinRM and Kerberos broke. The issue boiled down to upgrading pykerberos as suggested [here](https://groups.google.com/forum/?hl=nl&fromgroups#!topic/ansible-project/KfCkdsI0g2g) and upgrading to package versions pywinrm 0.3.0 requests-kerberos 0.12.0 pykerberos 1.2.1 requests-ntlm 1.1.0 pyOpenSSL 19.0.0. Some of this was suggested [here](https://access.redhat.com/solutions/3486461).
This seems to work now again. I can confirm, the same setup also works on CentOS 7.7 btw.
##### ISSUE TYPE
- Should mention updates (the pip commands) in the documentation, since this really wasn't that obvious from an administrators perspective.
##### COMPONENT NAME
ansible/docs/docsite/rst/user_guide/windows_winrm.rst
##### ANSIBLE VERSION
```
ansible 2.7.7
config file = /home/<user>/ansible/ansible.cfg
configured module search path = ['/home/<user>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0]
```
##### ADDITIONAL INFORMATION
```
<HOST> | UNREACHABLE! => {
"changed": false,
"msg": "kerberos: Bad HTTP response returned from server. Code 500",
"unreachable": true
}
```
I tended to get an error like this:
```
/usr/lib/python3/dist-packages/winrm/transport.py:308: UserWarning: Function <function HTTPKerberosAuth.__init__ at <SOME HEX ADDRESS>> does not contain optional arg send_cbt, check installed version with pip list
% (str(function), name))
```
##### OS / ENVIRONMENT
Debian 10 | https://github.com/ansible/ansible/issues/63016 | https://github.com/ansible/ansible/pull/64478 | 6f197880ce83d43158dfb1bba1eb82f4b4e9689e | 74b0760cb4df7437879b6d7228d2875cee558cb7 | 2019-10-01T16:03:46Z | python | 2019-11-08T21:11:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 63,003 | ["changelogs/fragments/win_firewall-Change-req-check-from-wmf-version-to-cmdlets-presence.yml", "lib/ansible/modules/windows/win_firewall.ps1"] | win_firewall module have higher requirements than needed | <!--- 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 requirement in the `win_firewall` module are higher than they should be. Currently, it checks if Windows Management Framework 5 or higher is installed on remote by checking [if powershell version is 5.0 or higher](https://github.com/ansible/ansible/blob/95a117090880906b757ba0643cd277b499e34048/lib/ansible/modules/windows/win_firewall.ps1#L23-L25), but several releases like Windows Server 2012 R2 have access to the powershell cmdlet used by [win_firewall.ps1](https://github.com/ansible/ansible/blob/95a117090880906b757ba0643cd277b499e34048/lib/ansible/modules/windows/win_firewall.ps1) (mainly [Get-NetFirewallProfile](https://docs.microsoft.com/en-us/powershell/module/netsecurity/get-netfirewallprofile?view=winserver2012r2-ps) and [Set-NetFirewallProfile](https://docs.microsoft.com/en-us/powershell/module/netsecurity/set-netfirewallprofile?view=win10-ps)) despite having a lower powershell version.
It may be better to check whether `Get-NetFirewallProfile` and `Set-NetFirewallProfile` are defined cmdlet rather than checking current powershell version, especially since upgrading powershell is not always an available option.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`win_firewall`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.3
config file = /home/user/ansible/ansible.cfg
configured module search path = [u'/home/user/ansible/module_library']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.9 (default, Jun 21 2019, 00:38:53) [GCC 4.9.2]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
Nothing changed
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
* Core : Debian GNU/Linux 8 (jessie)
* Remote : Windows Server 2012 R2 Standard
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
By running the following task on core,
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Enable Windows firewall service
win_firewall:
state: enabled
profiles:
- Domain
- Private
- Public
```
<!--- HINT: You can paste gist.github.com links for larger files -->
However, remote has the following PS version :
```
PS C:\Users\Administrator> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
4 0 -1 -1
```
And `Get-NetFirewallProfile` and `Set-NetFirewallProfile` are defined.
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Enabled firewall
```paste below
ok: [windows.domain.net]
```
(this can be obtained by bypassing the powershell version check)
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
fatal: [windows.domain.net]: FAILED! => {
"changed": false,
"profiles": [
"Domain",
"Private",
"Public"
],
"state": "enabled"
}
MSG:
win_firewall requires Windows Management Framework 5 or higher.
```
##### ADDITIONAL INFORMATIONS
It may be related to issue [#34411](https://github.com/ansible/ansible/issues/34411), but from what I read, it is relatively different as their issue was that used cmdlets weren't found. | https://github.com/ansible/ansible/issues/63003 | https://github.com/ansible/ansible/pull/64998 | f5133bec22947ee89a812663d8b2e6d4078c8901 | 96a422a6fc7d993cc17c895a54ae361c4458cb53 | 2019-10-01T12:27:15Z | python | 2019-11-20T01:00:56Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,983 | ["lib/ansible/module_utils/network/junos/facts/legacy/base.py"] | junos_facts in 2.9rc1 throws exception. Works 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
Ansible throws an exception when calling the junos_facts module
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
junos_facts (built-in network module)
##### ANSIBLE VERSION
```
$ ansible --version
ansible 2.9.0rc1
config file = /Users/matucker/junos_collection_test/ansible.cfg
configured module search path = ['/Users/matucker/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/matucker/junos_collection_test/venv/lib/python3.7/site-packages/ansible
executable location = /Users/matucker/junos_collection_test/venv/bin/ansible
python version = 3.7.4 (default, Jul 9 2019, 18:13:23) [Clang 10.0.1 (clang-1001.0.46.4)]
```
##### CONFIGURATION
```paste below
$ ansible-config dump --only-changed
DEFAULT_HOST_LIST(/Users/matucker/junos_collection_test/ansible.cfg) = ['/Users/matucker/junos_collection_test/hosts']
HOST_KEY_CHECKING(/Users/matucker/junos_collection_test/ansible.cfg) = False
```
##### OS / ENVIRONMENT
```
lab@alpsgagipxfw02-node0> show version
node0:
--------------------------------------------------------------------------
Hostname: lavender
Model: srx5800
Junos: 15.1X49-D180.2
AI-Scripts [6.0R1.1]
JUNOS Software Release [15.1X49-D180.2]
```
##### STEPS TO REPRODUCE
Install Ansible 2.9rc1
Inventory:
```yaml
[junos]
lavender.ultralab.juniper.net
[junos:vars]
ansible_connection=netconf
ansible_network_os=junos
ansible_user=labroot
ansible_password=lab123
```
Playbook:
```yaml
---
- name: Playbook Test
hosts: junos
tasks:
- name: built in module test
junos_facts:
```
##### EXPECTED RESULTS
```
PLAY [Playbook Test] **************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************
ok: [lavender.ultralab.juniper.net]
TASK [built in module test] *******************************************************************************************************************************************
ok: [lavender.ultralab.juniper.net]
PLAY RECAP ************************************************************************************************************************************************************
lavender.ultralab.juniper.net : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
##### ACTUAL RESULTS
```
PLAY [Playbook Test] **************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************
[WARNING]: Ignoring timeout(10) for junos_facts
fatal: [lavender.ultralab.juniper.net]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"junos_facts": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "exception": "Traceback (most recent call last):\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 102, in <module>\n _ansiballz_main()\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.junos.junos_facts', init_globals=None, run_name='__main__', alter_sys=False)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 180, in run_module\n fname, loader, pkg_name)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/modules/network/junos/junos_facts.py\", line 135, in <module>\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/modules/network/junos/junos_facts.py\", line 126, in main\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/facts.py\", line 78, in get_facts\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/common/facts/facts.py\", line 124, in get_network_legacy_facts\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/legacy/base.py\", line 97, in populate\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/legacy/base.py\", line 54, in get_text\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 450034-450041: ordinal not in range(128)\n", "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 102, in <module>\n _ansiballz_main()\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/AnsiballZ_junos_facts.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.junos.junos_facts', init_globals=None, run_name='__main__', alter_sys=False)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 180, in run_module\n fname, loader, pkg_name)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/modules/network/junos/junos_facts.py\", line 135, in <module>\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/modules/network/junos/junos_facts.py\", line 126, in main\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/facts.py\", line 78, in get_facts\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/common/facts/facts.py\", line 124, in get_network_legacy_facts\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/legacy/base.py\", line 97, in populate\n File \"/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload.zip/ansible/module_utils/network/junos/facts/legacy/base.py\", line 54, in get_text\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 450034-450041: ordinal not in range(128)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1, "warnings": ["Platform darwin on host lavender.ultralab.juniper.net is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information."]}}, "msg": "The following modules failed to execute: junos_facts\n"}
PLAY RECAP ************************************************************************************************************************************************************
lavender.ultralab.juniper.net : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
```
Traceback (most recent call last):
File "/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/Ansibal
lZ_junos_facts.py", line 102, in <module>
_ansiballz_main()
File "/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/Ansibal
lZ_junos_facts.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/Users/matucker/.ansible/tmp/ansible-local-77560craccig5/ansible-tmp-1569878043.2963982-176353774268055/Ansibal
lZ_junos_facts.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.network.junos.junos_facts', init_globals=None, run_name='__main__', alte
r_sys=False)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module
fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/modules/network/junos/junos_facts.py", line 135, in <module>
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/modules/network/junos/junos_facts.py", line 126, in main
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/module_utils/network/junos/facts/facts.py", line 78, in get_facts
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/module_utils/network/common/facts/facts.py", line 124, in get_network_legacy_facts
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/module_utils/network/junos/facts/legacy/base.py", line 97, in populate
File "/var/folders/04/g24gg21176zflhxqzl_82y9c0000gn/T/ansible_junos_facts_payload_LFmG2F/ansible_junos_facts_payload
.zip/ansible/module_utils/network/junos/facts/legacy/base.py", line 54, in get_text
UnicodeEncodeError: 'ascii' codec can't encode characters in position 450034-450041: ordinal not in range(128)
``` | https://github.com/ansible/ansible/issues/62983 | https://github.com/ansible/ansible/pull/63046 | 71bcce5db50ba6829b7759c2686e1090424ac6a4 | d336a14da6c02d41add2c6210dacca87babd501f | 2019-09-30T21:18:20Z | python | 2019-10-09T13:56:27Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,969 | ["changelogs/fragments/user-fix-value-comparison-on-macos.yaml", "lib/ansible/modules/system/user.py", "test/integration/targets/user/tasks/main.yml"] | User module on Darwin is not idempotent | <!--- 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 -->
Running the [user module](https://docs.ansible.com/ansible/latest/modules/user_module.html) on Ansible `2.8.5` and `devel` branch to create a user on a Darwin system fails if the user already exists with an error: `Cannot update property "uid" for user "user"`
The issue exists in `lib/ansible/modules/system/user.py`
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
user module
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.0.dev0
config file = /Users/johnchen/repos/buildhost-configuration3/scripts/macos_bootstrap/ansible.cfg
configured module search path = [u'/Users/johnchen/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/johnchen/repos/ansible/lib/ansible
executable location = /Users/johnchen/repos/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
HOST_KEY_CHECKING(ansible.cfg) = False
RETRY_FILES_ENABLED(ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
macOS 10.14.5 (18F132)
Kernel Version: Darwin 18.6.0
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Run the user task on a macOS host to create a user with any name and uid. The first run should complete successfully. Any subsequent runs will result in the mentioned failure.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Add Mac User
become: true
user:
name: "test"
uid: "500"
```
<!--- 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 Recap should show no changes on second run.
Example:
```
ok: [127.0.0.1] => (item={u'uid': 500, u'name': u'test'})
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The second run of the playbook fails with a `Cannot update property` error
<!--- Paste verbatim command output between quotes -->
```paste below
failed: [127.0.0.1] (item={u'uid': u'500', u'name': u'test'}) => {"ansible_loop_var": "item", "changed": false, "err": "", "item": {"name": "test", "uid": "500"}, "msg": "Cannot update property \"uid\" for user \"test\".", "out": "", "rc": 40}
```
| https://github.com/ansible/ansible/issues/62969 | https://github.com/ansible/ansible/pull/62973 | d4c4c92c97e8dc2791f6a9f63ba0a3a0ce467a6b | c73288ad5387a728349fae772aa9d1769af73a13 | 2019-09-30T16:19:22Z | python | 2019-11-22T22:05:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,958 | ["lib/ansible/modules/cloud/openstack/os_server_action.py"] | os_server_action fails when 'wait' = ' no' | <!--- 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 ansible to stop an OpenStack VM, specifying wait=no occur a error.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
os_server_action
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ubuntu/.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.12 (default, Aug 22 2019, 16:36:40) [GCC 5.4.0 20160609]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
no change
```
##### 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 -->
1. create a openstack vm
2. stop a openstack vm by ansible.
<!--- Paste example playbooks or commands between quotes below -->
playbook
```yaml
- name: Stop an OpenStack instance
hosts: all
gather_facts: no
roles:
- instance_action
vars:
instance_action: stop
```
```yaml
- name: Operate an OpenStack instance action
os_server_action:
action: "{{ instance_action }}"
server: "{{ instance_id }}"
wait: "{{ wait | default('yes') }}"
verify: "{{ verify | default('yes') }}"
```
vars
```yaml
instance_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
verify: no
wait: no
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
stop a OpenStack vm
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
fail to stop a OpenStack vm
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-playbook 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ubuntu/.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-playbook
python version = 2.7.12 (default, Aug 22 2019, 16:36:40) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
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
Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: stop_instance.yml *****************************************************************************************************************************************************************
1 plays in stop_instance.yml
PLAY [Stop an OpenStack instance] ***********************************************************************************************************************************************************
META: ran handlers
TASK [instance_action : Operate an OpenStack instance action] *******************************************************************************************************************************
task path: /home/ubuntu/work/os-integ/roles/instance_action/tasks/main.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ubuntu
<127.0.0.1> EXEC /bin/sh -c 'echo ~ubuntu && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530 `" && echo ansible-tmp-1569828606.07-4717533724530="` echo /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530 `" ) && sleep 0'
<127.0.0.1> Attempting python interpreter discovery
<127.0.0.1> EXEC /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'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/cloud/openstack/os_server_action.py
<127.0.0.1> PUT /home/ubuntu/.ansible/tmp/ansible-local-71929SqXFy/tmpj96ZTW TO /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530/AnsiballZ_os_server_action.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530/ /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530/AnsiballZ_os_server_action.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530/AnsiballZ_os_server_action.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/ubuntu/.ansible/tmp/ansible-tmp-1569828606.07-4717533724530/ > /dev/null 2>&1 && sleep 0'
[DEPRECATION WARNING]: Distribution Ubuntu 16.04 on host 127.0.0.1 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A
future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html for more
information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [127.0.0.1]: FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"msg": "New-style module did not handle its own exit"
}
PLAY RECAP **********************************************************************************************************************************************************************************
127.0.0.1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
There were the same error at the "start" action. | https://github.com/ansible/ansible/issues/62958 | https://github.com/ansible/ansible/pull/64330 | 78e476eb20fc78be7b64f36cb5c518a12a3d482d | 42b290b781f0ce6c1cf70c4f02ec5c66a03e6783 | 2019-09-30T07:39:42Z | python | 2019-11-02T08:42:34Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,953 | ["changelogs/fragments/62971-docker_container-image-finding.yml", "lib/ansible/modules/cloud/docker/docker_container.py", "test/integration/targets/docker_container/tasks/tests/image-ids.yml"] | docker_container: image change not recognized if new image is not known to docker daemon | ##### SUMMARY
If there's currently a container with image `repo/name:tag1` running (or created), and I change the `docker_container` image tag to `repo/name:tag2` (where this image hasn't been pulled yet), `docker_container` will not notice that the image changed and will not recreate the container.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
docker_container
##### ANSIBLE VERSION
```paste below
2.9.0
```
| https://github.com/ansible/ansible/issues/62953 | https://github.com/ansible/ansible/pull/62971 | bb9b2e87bc946c7446b2747a0c97427adf94b020 | 41eafc2051d95ac712d1e359920f03056ca523a3 | 2019-09-30T06:10:46Z | python | 2019-10-04T19:50:09Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,937 | ["lib/ansible/module_utils/redfish_utils.py", "lib/ansible/modules/remote_management/redfish/redfish_command.py"] | redfish_command - Accounts - UpdateUserName / UpdatePasswordPolicy | #### SUMMARY
This feature would implement a UpdateUserName command for the Accounts category of redfish_command, to update user name. And also implement a UpdatePasswordPolicy command for the Accounts category of redfish_command to change password policy.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
redfish_command
##### ADDITIONAL INFORMATION
These 2 commands would help user to update user name or update password policy
| https://github.com/ansible/ansible/issues/62937 | https://github.com/ansible/ansible/pull/62941 | 92a39a0910e6783efb36b87aa108a24db1481285 | 31f3a29613d47908939e863d953a55c9dc7bada1 | 2019-09-29T03:22:15Z | python | 2019-10-29T13:13:40Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,909 | ["lib/ansible/modules/cloud/ovirt/ovirt_host_network.py"] | ovirt_host_network throws typerror '<' not supported between instances of 'dict' and 'dict' | ##### SUMMARY
calling ovirt_host_network module against a bond interface throws a TypeError exception when run against an existing a bond interface regardless of whether the module arguments have changed or not
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
ovirt_host_networks in method __compare_options of the HostNetworksModule class
##### ANSIBLE VERSION
```
ansible 2.8.4
config file = None
configured module search path = ['/home/deploy/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/deploy/ansible_285_venv/lib/python3.6/site-packages/ansible
executable location = /home/deploy/ansible_285_venv/bin/ansible
```
##### CONFIGURATION
```
N/A (no changes)
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
CentOS7.7 19.08
##### STEPS TO REPRODUCE
Configure a bond interface, initial run will complete and configure the bond as expected. Second run of the same code fails with exception
<!--- Paste example playbooks or commands between quotes below -->
```
- name: "Configure bond interface"
delegate_to: localhost
ovirt_host_network:
auth: "{{ ovirt_auth }}"
name: "{{ ansible_fqdn }}"
networks: "{{ networks_on_bond }}"
bond:
name: "{{ bond_name }}"
mode: 4
interfaces: "{{ bond_interfaces }}"
options:
lacp_rate: "fast"
xmit_hash_policy: "layer3+4"
save: yes
check: yes
timeout: 180
wait: yes
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
Ansible should report that OK or CHANGED depending on whether the module arguments have changed the configuration or now
##### ACTUAL RESULTS
```
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: deploy
<localhost> EXEC /bin/sh -c 'echo ~deploy && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198 `" && echo ansible-tmp-1569588017.0785801-154242329421198="` echo /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198 `" ) && sleep 0'
Using module file /home/deploy/ansible_285_venv/lib/python3.6/site-packages/ansible/modules/cloud/ovirt/ovirt_host_network.py
<localhost> PUT /home/deploy/.ansible/tmp/ansible-local-24097xoko1are/tmpe2zvp1l4 TO /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198/AnsiballZ_ovirt_host_network.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198/ /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198/AnsiballZ_ovirt_host_network.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/deploy/ansible_285_venv/bin/python3 /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198/AnsiballZ_ovirt_host_network.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/deploy/.ansible/tmp/ansible-tmp-1569588017.0785801-154242329421198/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_ovirt_host_network_payload_s4fkqwyn/__main__.py", line 395, in main
(nic is None or host_networks_module.has_update(nics_service.service(nic.id)))
File "/tmp/ansible_ovirt_host_network_payload_s4fkqwyn/__main__.py", line 288, in has_update
update = self.__compare_options(get_bond_options(bond.get('mode'), bond.get('options')), getattr(nic.bonding, 'options', []))
File "/tmp/ansible_ovirt_host_network_payload_s4fkqwyn/__main__.py", line 247, in __compare_options
return sorted(get_dict_of_struct(opt) for opt in new_options) != sorted(get_dict_of_struct(opt) for opt in old_options)
TypeError: '<' not supported between instances of 'dict' and 'dict'
fatal: [compute01.ovirt.nullpacket.io -> localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"bond": {
"interfaces": [
"enp61s0f0",
"enp61s0f1"
],
"mode": 4,
"name": "bond0",
"options": {
"lacp_rate": "fast",
"xmit_hash_policy": "layer3+4"
}
},
"check": true,
"fetch_nested": false,
"interface": null,
"labels": null,
"name": "compute01.ovirt.nullpacket.io",
"nested_attributes": [],
"networks": [
{
"address": "10.10.83.2",
"boot_protocol": "static",
"gateway": "10.10.83.1",
"name": "ovirtmgmt",
"netmask": "255.255.255.0"
},
{
"boot_protocol": "none",
"name": "vm_provider"
},
{
"boot_protocol": "none",
"name": "vm_okd"
}
],
"poll_interval": 3,
"save": true,
"state": "present",
"sync_networks": false,
"timeout": 180,
"wait": true
}
},
"msg": "'<' not supported between instances of 'dict' and 'dict'"
}
```
| https://github.com/ansible/ansible/issues/62909 | https://github.com/ansible/ansible/pull/64437 | 484943cbd1729fb8e82b9d98619a4246f8811178 | d9f5be8d0d8a036aaa89056536f58b4a2e3c86b5 | 2019-09-27T13:08:36Z | python | 2019-11-05T13:22:17Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,873 | ["changelogs/fragments/62928-docker_container-ip-address-idempotency.yml", "lib/ansible/modules/cloud/docker/docker_container.py", "test/integration/targets/docker_container/tasks/main.yml", "test/integration/targets/docker_container/tasks/tests/network.yml"] | docker_container not idempotent | <!--- 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_container is not idempotent when specifying an ip address
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
docker_container
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /home/pkueck/projects/cix.de/cix-ansible/ansible.cfg
configured module search path = ['/home/xxx/.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 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
```
##### 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. -->
Fedora 30, CentOS 7
##### 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: myhost
gather_facts: no
tasks:
- docker_network:
name: "foonet"
ipam_config:
- subnet: 172.16.44.0/24
- docker_container:
name: "foo"
state: present
image: centos
networks:
- name: foonet
ipv4_address: "172.16.44.11"
networks_cli_compatible: yes
loop: [1,2]
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
container created on first loop cycle, not touched on second one
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
PLAY [myhost] ***************
TASK [docker_network] *******
ok: [myhost]
TASK [docker_container] *****
--- before
+++ after
@@ -1,9 +1,10 @@
{
- "exists": false,
+ "exists": true,
"network.foonet": {
"aliases": null,
- "ipv4_address": "",
- "ipv6_address": "",
+ "id": "27e539c3b9af0160f02a0532ad081d1bd1ef3dd93e652095ec96d6dfd95bf2fb",
+ "ipv4_address": "172.16.44.11",
+ "ipv6_address": null,
"links": null,
"name": "foonet"
}
changed: [myhost] => (item=1)
--- before
+++ after
@@ -1,10 +1,9 @@
{
"network.foonet": {
- "aliases": [
- "44cfded131d7"
- ],
- "ipv4_address": "",
- "ipv6_address": "",
+ "aliases": null,
+ "id": "27e539c3b9af0160f02a0532ad081d1bd1ef3dd93e652095ec96d6dfd95bf2fb",
+ "ipv4_address": "172.16.44.11",
+ "ipv6_address": null,
"links": null,
"name": "foonet"
}
changed: [myhost] => (item=2)
```
| https://github.com/ansible/ansible/issues/62873 | https://github.com/ansible/ansible/pull/62928 | a79f7e575a9576f804007ed979aa6c1aa731dd2d | 62c0cae29a393859522fcb391562dc1edd73ce53 | 2019-09-26T13:27:41Z | python | 2019-09-30T08:47:02Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,869 | ["changelogs/fragments/62870-collection-install-default-path.yml", "docs/docsite/rst/dev_guide/developing_collections.rst", "docs/docsite/rst/user_guide/collections_using.rst", "lib/ansible/cli/galaxy.py"] | Missing default collection install path | ##### SUMMARY
`ansible-galaxy collection install` currently requires the user to specify an install path using the `-p` option. Galaxy currently generates and displays the CLI command for installing a collection. There is no way for Galaxy to determine a value for `-p`, and hard coding a default value into Galaxy makes no sense.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`ansible-galaxy`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.10.0.dev0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/Users/chouseknecht/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/chouseknecht/projects/ansible/lib/ansible
executable location = /Users/chouseknecht/.pyenv/versions/venv27/bin/ansible
python version = 2.7.14 (default, Nov 14 2017, 23:24:24) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)]
```
| https://github.com/ansible/ansible/issues/62869 | https://github.com/ansible/ansible/pull/62870 | 1fd79240db5dd6bef033982d113edc95dba8d017 | 911aa6aab9aea867bc79e38684ab1b198fa36937 | 2019-09-26T12:11:07Z | python | 2019-10-02T14:22:00Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,862 | ["lib/ansible/modules/files/lineinfile.py"] | unclear explanation of `firstmatch` option in the `lineinfile` module | <!--- 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
The current documentation has this explanation for the `firstmatch`
parameter of the `lineinfile` action:
```
If set, insertafter and insertbefore find a first line has regular expression matches.
```
I have no idea what `firstmatch` does, based on the above line.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
lineinfile
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.4
config file = None
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.virtualenvs/elasticluster/local/lib/python2.7/site-packages/ansible
executable location = /home/user/.virtualenvs/elasticluster/bin/ansible
python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/62862 | https://github.com/ansible/ansible/pull/62896 | 0b97180c74e83d275fdaaf6d831b963facecd45d | aeb0dde7ccb0b7ac34623241835cc876067b8c86 | 2019-09-26T10:30:52Z | python | 2019-10-18T11:53:50Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,819 | ["lib/ansible/module_utils/redfish_utils.py", "lib/ansible/modules/remote_management/redfish/redfish_config.py", "lib/ansible/modules/remote_management/redfish/redfish_info.py"] | redfish_info / redfish_config - Manager - GetManagerServices / SetManagerServices | <!--- 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 -->
This feature would implement a GetManagerServices command for the Manager category of redfish_info, to retrieve a list of NetworkProtocol and their properties, like SSH, Port, Enable or Disable. And also implement a SetManagerServices command for the Manager category of redfish_config, to set NetworkProtocol's properties, like enable/disable SSH, change Port.
##### 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_config
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
These 2 commands would help user to get the status of services or control the status of services Manager provided.
<!--- 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/62819 | https://github.com/ansible/ansible/pull/62815 | 4e8bb334a9da287bb31775db2e7f4e7318ec90ca | 8316fa66e8a16fb15e16d18fdff001f6617d9ef4 | 2019-09-25T07:16:11Z | python | 2019-10-31T07:57:20Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,816 | ["lib/ansible/modules/cloud/vmware/vmware_guest.py"] | VMware: customize guest OS through vmware_guest module too long to timeout | <!--- 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 -->
Customize Windows 10 guest OS with wait_for_customzation parameter set, but after many hours there is no return and the playbook just stuck there.
##### 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
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.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 = /root/.local/lib/python2.7/site-packages/ansible
executable location = ./bin/ansible
python version = 2.7.15+ (default, Jul 9 2019, 16:51:35) [GCC 7.4.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. -->
vSphere 6.7U3, Windows 10 guest OS 32bit with BIOS firmware
##### 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 -->
If something wrong with the customization in guest OS, no event in VC, then wait_for_customization should return timeout error in a not very long time.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
no timeout error return after more than 10 hours, just stuck there.
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/62816 | https://github.com/ansible/ansible/pull/64493 | f1bf15bf63fce93c4bdfee709a44e48b525b6050 | 067e96b152d7bcf397143a0f4625cc4f7c89c3a7 | 2019-09-25T03:27:45Z | python | 2019-11-19T02:33:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,810 | ["changelogs/fragments/62810-Vmware-Guest-Allow-DashInWindowsServerDNSName.yml", "lib/ansible/modules/cloud/vmware/vmware_guest.py"] | vmware_guest and server names with dashes issue | I am trying to use the vmware_guest module to deploy a Windows 2016 VM from template in a VMware 6.0 and 6.5 vCenter environment while using a server name with a dash in the name (eg, SERVER-NAME). The display name of the VM is created correctly in vCenter but after guest customization, the server name in the Windows OS appears without the dash (eg, SERVERNAME). Is there an option I am missing to use the correct name or is this a bug? Deploying the template using vCenter with this name works correctly. Thanks!
Ansible host:
CentOS 7.3.1611
ansible 2.8.1
pyvmomi 6.7.3
vCenters 6.0 and 6.5 | https://github.com/ansible/ansible/issues/62810 | https://github.com/ansible/ansible/pull/64052 | 8316fa66e8a16fb15e16d18fdff001f6617d9ef4 | 548fa65ac6db1f3b24944a106fa01872362fea17 | 2019-09-24T20:30:36Z | python | 2019-10-31T08:32:52Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,809 | ["changelogs/fragments/62809-dnf-wildcard-absent-failure.yml", "lib/ansible/modules/packaging/os/dnf.py", "test/integration/targets/yum/tasks/yum.yml"] | dnf (and probly yum) wild-card match remove is not idempotence | ##### SUMMARY
When using wild-card in package name to remove, the first run will remove the packages,
but the second run will fail with message `Failed to install some of the specified packages`
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
- dnf
##### ANSIBLE VERSION
```
ansible 2.8.5
config file = /home/rabin/src/ansible/workstation-setup/ansible.cfg
configured module search path = ['/home/rabin/.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 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
```
##### CONFIGURATION
```
ANSIBLE_SSH_CONTROL_PATH(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = ./.ansible/ssh-%%C
CACHE_PLUGIN(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = ./.ansible/facts_cache
CACHE_PLUGIN_TIMEOUT(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = 86400
DEFAULT_EXECUTABLE(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = /bin/bash
DEFAULT_GATHERING(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = smart
DEFAULT_HOST_LIST(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = ['/home/rabin/src/ansible/workstation-setup/inventory']
DEFAULT_REMOTE_PORT(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = 22
RETRY_FILES_SAVE_PATH(/home/rabin/src/ansible/workstation-setup/ansible.cfg) = /home/rabin/src/ansible/workstation-setup/.ansible/retry
```
##### OS / ENVIRONMENT
* Fedora 30
##### STEPS TO REPRODUCE
try to remove a package twice
or run the playbook twice (first run will work if there is a match, but secend run will fail)
```yaml
- dnf:
name: lohit-*-fonts
- dnf:
name: lohit-*-fonts
state: absent
- dnf:
name: lohit-*-fonts
state: absent
```
##### EXPECTED RESULTS
Same as when you ask it to remove a spesific package
```yaml
- dnf:
name: lohit-tamil-fonts
- dnf:
name: lohit-tamil-fonts
state: absent
- dnf:
name: lohit-tamil-fonts
state: absent
```
##### ACTUAL RESULTS
```
fatal: [localhost]: FAILED! => {"changed": false, "failures": ["lohit-*-fonts - no package matched: lohit-*-fonts"], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
```
| https://github.com/ansible/ansible/issues/62809 | https://github.com/ansible/ansible/pull/63034 | 911aa6aab9aea867bc79e38684ab1b198fa36937 | 8bcf11fee9842af35efc66087c1195200cb2990e | 2019-09-24T20:20:34Z | python | 2019-10-02T15:05:12Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,789 | ["lib/ansible/module_utils/vmware.py", "lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py"] | VMware: Move helper functions from vmware_host_config_manager to vmware module | ##### SUMMARY
Move some helper functions from `vmware_host_config_manager` to `PyVmomi`.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
vmware_host_config_manager
vmware
##### ADDITIONAL INFORMATION
`vmware_host_config_manager` has some helper functions (`is_integer`, `is_boolean` and `is_truthy`) to deal with vSphere Web Services API `OptionValue`s. Today, I started to work on issue #61421 and I think these helper functions could be useful there, too. Actually, there are several Managed Object Types with an `OptionValue[]` parameter. Instead of duplicating the code, I think it would be better to move these helper functions to `PyVmomi` in `module_utils/vmware.py`. | https://github.com/ansible/ansible/issues/62789 | https://github.com/ansible/ansible/pull/62801 | ad580a71c475b570cdbd4c79aaf0082ecccdf5fc | d01035ef2532b93793048b7a350c3223ce200643 | 2019-09-24T13:44:43Z | python | 2019-09-30T20:55:36Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,784 | ["lib/ansible/modules/cloud/vmware/vmware_guest_network.py", "test/integration/targets/vmware_guest_network/tasks/main.yml"] | vmware_guest_network.py uses product 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
The documentation states the instance uuid is required for the uuid parameter but the hw product uuid is used instead.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
vmware_guest_network
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.9.0rc1.post0
config file = None
configured module search path = ['/home/pernst/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
```
##### 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
- name: Configure virtual network cards
vmware_guest_network:
hostname: "{{ vsphere_host }}"
username: "{{ vsphere_user }}"
password: "{{ vsphere_pass }}"
validate_certs: "{{ vsphere_validate_certs | default(true) }}"
datacenter: "{{ vsphere_target_dc }}"
uuid: "{{ vm_facts.instance.instance_uuid }}"
register: vm_networks
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 -->
```paste below
FAILED! => {"changed": false, "msg": "Unable to find the specified virtual machine using <UUID>
```
P.S.: I suggest the same uuid handling as in vmware_guest with an additional use_instance_uuid parameter.
| https://github.com/ansible/ansible/issues/62784 | https://github.com/ansible/ansible/pull/62818 | d615d7ea1924eb3e63d4e5d77423d261b3673800 | b6ea43efc3a9c426cea6b4c70e2b795b58f7bbbd | 2019-09-24T12:41:40Z | python | 2019-10-17T06:53:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,781 | ["changelogs/fragments/powershell-fix-quoting.yaml", "lib/ansible/plugins/connection/winrm.py", "lib/ansible/plugins/shell/powershell.py", "test/integration/targets/win_fetch/meta/main.yml", "test/integration/targets/win_fetch/tasks/main.yml", "test/sanity/ignore.txt"] | fetch fails on Windows filenames containing dollar sign | <!--- 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 -->
`fetch` module fails on Windows with file names containing dollar signs (winrm FETCH does not quote these from PowerShell). When using `|quote` or backslash-escaping the dollars, slurp, which is executed by fetch, does handle such paths correctly and therefore fails on pre-quoted ones.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
fetch
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.7.4
config file = /etc/ansible/ansible.cfg
configured module search path = ['/etc/ansible/plugins/modules', '/etc/venus/common/ansible/modules']
ansible python module location = /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.1 (default, Oct 24 2017, 05:44:23) [GCC 5.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
CACHE_PLUGIN(/etc/ansible/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/etc/ansible/ansible.cfg) = /var/lib/ansible/facts
CACHE_PLUGIN_TIMEOUT(/etc/ansible/ansible.cfg) = 86400
DEFAULT_ACTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/action', '/etc/venus/common/ansible/action']
DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/callback', '/etc/venus/common/ansible/callback']
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = ['log_plays', 'playbook_name', 'json']
DEFAULT_CONNECTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/connection', '/etc/venus/common/ansible/connection']
DEFAULT_FILTER_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/filter', '/etc/venus/common/ansible/filter']
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 30
DEFAULT_GATHERING(/etc/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = ['/etc/ansible/inventory/venus.yml', '/etc/ansible/inventory/hosts.yml']
DEFAULT_INVENTORY_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/inventory', '/etc/venus/common/ansible/inventory']
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible/ansible.log
DEFAULT_LOOKUP_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/lookup', '/etc/venus/common/ansible/lookup']
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/modules', '/etc/venus/common/ansible/modules']
DEFAULT_POLL_INTERVAL(/etc/ansible/ansible.cfg) = 15
DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/roles']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug
DEFAULT_TRANSPORT(/etc/ansible/ansible.cfg) = venus
DEFAULT_VARS_PLUGIN_PATH(/etc/ansible/ansible.cfg) = ['/etc/ansible/plugins/vars', '/etc/venus/common/ansible/vars']
INVENTORY_ENABLED(/etc/ansible/ansible.cfg) = ['venus', 'yaml', 'advanced_host_list', 'host_list']
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
* Control host: CentOS 7.6
* target: Microsoft Windows Server 2008 R2 Standard Service Pack 1
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Create a file such as `C:\Temp\file_with_$dollar.txt`
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Get Logs
hosts: all
vars:
log_files:
- "C:/Temp/testfile_with_$dollar.txt"
tasks:
- name: touch test files
win_file:
path: "{{ item }}"
state: touch
with_items: "{{ log_files }}"
- name: fetch log files
fetch:
src: "{{ item }}"
dest: "{{ tmp_dir }}/{{ item | basename }}"
flat: yes
with_items: "{{ log_files }}"
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
File gets copied from Windows remote to localhost.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-playbook 2.7.4
config file = /etc/ansible/ansible.cfg
configured module search path = ['/etc/ansible/plugins/modules', '/etc/venus/common/ansible/modules']
ansible python module location = /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.6.1 (default, Oct 24 2017, 05:44:23) [GCC 5.3.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /etc/ansible/inventory/venus.yml inventory source with venus plugin
/etc/ansible/inventory/hosts.yml did not meet venus requirements, check plugin documentation if this is unexpected
Set default localhost to localhost
Parsed /etc/ansible/inventory/hosts.yml inventory source with yaml plugin
Loading callback plugin debug of type stdout, v2.0 from /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/plugins/callback/debug.py
Loading callback plugin log_plays of type notification, v2.0 from /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/plugins/callback/log_plays.py
PLAYBOOK: test.yml ***************************************************************************************************************************************************************************
1 plays in test.yml
PLAY [testclient] ****************************************************************************************************************************************************************************
META: ran handlers
TASK [touch test files] **********************************************************************************************************************************************************************
task path: /home/testuser/ansible/test.yml:7
Using module file /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/modules/windows/win_file.ps1
<testclient> ESTABLISH WINRM CONNECTION FOR USER: testuser@DOMAIN on PORT 5985 TO testclient
checking if winrm_host testclient is an IPv6 address
EXEC (via pipeline wrapper)
changed: [testclient] => (item=C:/Temp/testfile_with_$dollar.txt) => {
"changed": true,
"item": "C:/Temp/testfile_with_$dollar.txt"
}
TASK [fetch log files] ***********************************************************************************************************************************************************************
task path: /home/testuser/ansible/packages/co2mo/test.yml:12
Using module file /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/modules/windows/win_stat.ps1
<testclient> ESTABLISH WINRM CONNECTION FOR USER: testuser@DOMAIN on PORT 5985 TO testclient
checking if winrm_host testclient is an IPv6 address
EXEC (via pipeline wrapper)
<testclient> FETCH "C:\Temp\testfile_with_$dollar.txt" TO "/home/testuser/ansible/testfile_with_$dollar.txt"
Traceback (most recent call last):
File "/usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/plugins/connection/winrm.py", line 681, in fetch_file
raise IOError(to_native(result.std_err))
OSError: #< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">The variable '$dollar' cannot be retrieved because it has not been set._x000D__x000A_</S><S S="Error">At line:2 char:32_x000D__x000A_</S><S S="Error">+ $path = "C:\Temp\testfile_with_$dollar.txt"_x000D__x000A_</S><S S="Error">+ ~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : InvalidOperation: (dollar:String) [], RuntimeExc _x000D__x000A_</S><S S="Error"> eption_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : VariableIsUndefined_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S><S S="Error">The variable '$path' cannot be retrieved because it has not been set._x000D__x000A_</S><S S="Error">At line:3 char:21_x000D__x000A_</S><S S="Error">+ If (Test-Path -Path $path -PathType Leaf)_x000D__x000A_</S><S S="Error">+ ~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : InvalidOperation: (path:String) [], RuntimeExcep _x000D__x000A_</S><S S="Error"> tion_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : VariableIsUndefined_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
fatal: [testclient]: FAILED! => {}
MSG:
failed to transfer file to "/home/testuser/ansible//testfile_with_$dollar.txt"
PLAY RECAP ***********************************************************************************************************************************************************************************
testclient : ok=1 changed=1 unreachable=0 failed=1
```
When replacing `src: "{{ item }}"` with `src: "{{ item|quote }}"`:
```
TASK [fetch log files] ***********************************************************************************************************************************************************************
task path: /home/testuser/ansible/test.yml:12
Using module file /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/modules/windows/win_stat.ps1
<testclient> ESTABLISH WINRM CONNECTION FOR USER: testuser@DOMAIN on PORT 5985 TO testclient
checking if winrm_host testclient is an IPv6 address
EXEC (via pipeline wrapper)
<testclient> FETCH "C:\Temp\testfile_with_$dollar.txt" TO "/home/testuser/ansible/testfile_with_$dollar.txt"
Traceback (most recent call last):
File "/usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/plugins/connection/winrm.py", line 681, in fetch_file
raise IOError(to_native(result.std_err))
OSError: #< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">The variable '$dollar' cannot be retrieved because it has not been set._x000D__x000A_</S><S S="Error">At line:2 char:32_x000D__x000A_</S><S S="Error">+ $path = "C:\Temp\testfile_with_$dollar.txt"_x000D__x000A_</S><S S="Error">+ ~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : InvalidOperation: (dollar:String) [], RuntimeExc _x000D__x000A_</S><S S="Error"> eption_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : VariableIsUndefined_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S><S S="Error">The variable '$path' cannot be retrieved because it has not been set._x000D__x000A_</S><S S="Error">At line:3 char:21_x000D__x000A_</S><S S="Error">+ If (Test-Path -Path $path -PathType Leaf)_x000D__x000A_</S><S S="Error">+ ~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : InvalidOperation: (path:String) [], RuntimeExcep _x000D__x000A_</S><S S="Error"> tion_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : VariableIsUndefined_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
fatal: [testclient]: FAILED! => {}
```
When replacing `src: "{{ item }}"` with `src: "{{ item|replace('$', '\\$') }}"`:
```
TASK [fetch log files] ***********************************************************************************************************************************************************************
task path: /home/testuser/ansible/test.yml:12
Using module file /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/modules/windows/win_stat.ps1
<testclient> ESTABLISH WINRM CONNECTION FOR USER: testuser@DOMAIN on PORT 5985 TO testclient
checking if winrm_host testclient is an IPv6 address
EXEC (via pipeline wrapper)
Using module file /usr/local/ansible/2.7/lib/python3.6/site-packages/ansible/modules/windows/slurp.ps1
EXEC (via pipeline wrapper)
failed: [testclient] (item=C:/Temp/testfile_with_$dollar.txt) => {
"changed": false,
"item": "C:/Temp/testfile_with_$dollar.txt"
}
MSG:
Path C:\Temp\testfile_with_\$dollar.txt is not found
```
##### WORKAROUND
```yaml
- name: create temporary copy of log files
win_copy:
remote_src: true
src: "{{ item }}"
dest: "{{ item | replace('$', 'DOLLAR') }}.transfer"
force: no
with_items: "{{ log_files }}"
- name: fetch log files
fetch:
src: "{{ item | replace('$', 'DOLLAR') }}.transfer"
dest: "{{ tmp_dir }}/{{ item | basename }}"
flat: yes
with_items: "{{ log_files }}"
- name: remove temporary copy of log files
win_file:
path: "{{ item | replace('$', 'DOLLAR') }}.transfer"
state: absent
with_items: "{{ log_files }}"
``` | https://github.com/ansible/ansible/issues/62781 | https://github.com/ansible/ansible/pull/71411 | 8897d7e2ff8fa37c25cd4ba039984fd3a9e13b33 | 72a7cb4a2c3036da5e3abb32c50713a262d0c063 | 2019-09-24T11:15:44Z | python | 2020-08-25T21:06:51Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,775 | ["lib/ansible/modules/cloud/ovirt/ovirt_vm.py"] | Add 'restart' state/parameter to the ovirt_vm module | <!--- 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 -->
Add 'restart' state or restart option to the `ovirt_vm` module.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
ovirt_vm
##### 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/62775 | https://github.com/ansible/ansible/pull/62785 | 44a6c69562ac8ec2b80de1362b6b7b00b581f725 | 9aff5f600733b485da71ba520641493e5f182cb1 | 2019-09-24T08:03:33Z | python | 2019-09-30T14:46:19Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,772 | ["changelogs/fragments/62772-vmware_vmkernel_info-fix.yml", "lib/ansible/modules/cloud/vmware/vmware_vmkernel_info.py"] | VMware: NoneType error while fetching details using vmware_vmkernel_facts | <!--- 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 -->
Getting FATAL error when VM cluster contains ESX hosts in non-responding state
##### 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_vmkernel_facts
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.8.3
```
##### 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. -->
VCS 6.5
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
simple playbook to query the vmkernel facts
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: Gather vmkernel facts from cluster
vmware_vmkernel_facts:
cluster_name: '{{vm_cluster}}'
validate_certs: no
delegate_to: localhost
register: vmk_out
ignore_errors: yes
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
standard output
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
```
{
"exception": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 201, in <module>\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 196, in main\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 109, in __init__\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 119, in get_all_vmks_by_service_type\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 146, in query_service_type_for_vmks\nAttributeError: 'NoneType' object has no attribute 'selectedVnic'\n",
"_ansible_no_log": false,
"_ansible_delegated_vars": {
"ansible_host": "localhost"
},
"module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1569306301.15-75561088679807/AnsiballZ_vmware_vmkernel_facts.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 201, in <module>\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 196, in main\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 109, in __init__\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 119, in get_all_vmks_by_service_type\n File \"/tmp/ansible_vmware_vmkernel_facts_payload_XR_16X/__main__.py\", line 146, in query_service_type_for_vmks\nAttributeError: 'NoneType' object has no attribute 'selectedVnic'\n",
"changed": false,
"module_stdout": "",
"rc": 1,
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
}
```
| https://github.com/ansible/ansible/issues/62772 | https://github.com/ansible/ansible/pull/65834 | 365820f871916663b0244d9de03101b28abc6a44 | 34acabd70a7915049b544c9a798c1c5f1aa53600 | 2019-09-24T07:00:48Z | python | 2019-12-24T04:08:38Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,728 | ["changelogs/fragments/64637-docker_swarm_service-tmpfs-source.yml", "lib/ansible/modules/cloud/docker/docker_swarm_service.py", "test/integration/targets/docker_swarm_service/tasks/tests/mounts.yml"] | tmpfs src is a required string | <!--- 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 -->
In docker_swarm_service module in ansible, if we are specifying mount option as tmpfs, it is required to set src. But for docker service create, src is not supported for tmpfs.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
docker_swarm_service
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.4
config file = /home/vani/Projects/voody/ansible/ansible.cfg
configured module search path = ['/home/vani/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Aug 20 2019, 17:12:48) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_NOCOWS(/home/user/Projects/ansible/ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/home/user/Projects/ansible/ansible.cfg) = yaml
```
##### 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/62728 | https://github.com/ansible/ansible/pull/64637 | dd5415017e554188e207e4b213c778333e913d55 | 574bd32db230b518c883a2eac45af76f3385db56 | 2019-09-23T06:54:03Z | python | 2019-11-09T20:01:56Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,723 | ["test/lib/ansible_test/_data/sanity/import/importer.py", "test/lib/ansible_test/_internal/sanity/import.py"] | Import sanity test not checking module main function | ##### SUMMARY
When checking Ansible modules, the import sanity test should check modules twice, once with `__name__` set to `'__main__'` and once without, so that modules can be checked up to the point that `AnsibleModule` is instantiated.
This works correctly for Ansible 2.8 and earlier, but in Ansible 2.9 the checking with `__name__` set to `'__main__'` no longer occurs.
##### ISSUE TYPE
Bug Report
##### COMPONENT NAME
ansible-test
##### ANSIBLE VERSION
2.9.0rc1
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### STEPS TO REPRODUCE
```
ansible-test coverage erase
ansible-test sanity --test import ping --docker -v --coverage --python 3.7
ansible-test coverage html
```
Look at the coverage results for the `ping` module and notice that under Ansible 2.8 and earlier the `__name__ == '__main__'` branch is covered, but under Ansible 2.9 it is not.
##### EXPECTED RESULTS
Ansible modules are checked with `__name__` set to `'__main__'` and not.
##### ACTUAL RESULTS
Ansible modules are checked only with `__name__` not set to `'__main__'`.
| https://github.com/ansible/ansible/issues/62723 | https://github.com/ansible/ansible/pull/63830 | b52d7155678017340fd39711b335ec2c582d6783 | 92ccdeac31902803c953792d9af929c7edf93f60 | 2019-09-22T17:08:20Z | python | 2019-10-23T06:00:35Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,672 | ["lib/ansible/module_utils/azure_rm_common.py"] | Azure ansible modules do not support latest azure stack API profiles | <!--- 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 -->
Azure Stack has gone on to support 2019-03-01-hybrid, 2018-03-01-hybrid profiles. But Azure modules for Ansible only supports 2017-03-09-profile with a limited set of resource clients.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
API Profiles
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = None
configured module search path = [u'/home/testuser/.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, Jul 9 2019, 16:51:35) [GCC 7.4.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 -->
Azure Ansible modules need to support 2019-03-01-hybrid and 2018-03-01-hybrid profiles for Azure Stack.
##### 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/62672 | https://github.com/ansible/ansible/pull/62675 | 69317a9d3e7286ca5419114b52ebe307aafd702b | 926e423690162b3bdf3ab255b0d50f0a9ae48e1a | 2019-09-20T18:12:18Z | python | 2019-10-02T17:04:28Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,641 | ["changelogs/fragments/63969-zabbix_action_argsfix.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/monitoring/zabbix/zabbix_action.py"] | event_source required for "absent" zabbix actions | ##### SUMMARY
When specifying only action name and state "absent", that fails with "missing required arguments: event_source".
Zabbix action names are unique across types (event sources), thus the event source parameter in this case is not mandated by the Zabbix API.
It would be great to either lift this limitation, or add an example in the documentation explaining why it's there.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
zabbix_action
##### ANSIBLE VERSION
latest
##### CONFIGURATION
Not relevant.
##### OS / ENVIRONMENT
Not relevant.
##### STEPS TO REPRODUCE
```yaml
- name: "Report problems to Zabbix administrators"
state: absent
```
##### EXPECTED RESULTS
Either success, or documented special limitation.
##### ACTUAL RESULTS
```
failed: [host] (item={u'state': u'absent', u'name': u'Report problems to Zabbix administrators'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "Report problems to Zabbix administrators", "state": "absent"}, "msg": "missing required arguments: event_source"}
``` | https://github.com/ansible/ansible/issues/62641 | https://github.com/ansible/ansible/pull/63969 | 21c8dae83b832a8abde59e7ba94c74d6c7f8a128 | 0cb19e655c7a6fdf9acbde7d1e8f712dc0f7509d | 2019-09-20T08:17:43Z | python | 2019-11-08T11:15:13Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,633 | ["changelogs/fragments/include_vars-ad-hoc-stack-trace-fix.yaml", "lib/ansible/plugins/action/include_vars.py", "test/integration/targets/include_vars-ad-hoc/aliases", "test/integration/targets/include_vars-ad-hoc/dir/inc.yml", "test/integration/targets/include_vars-ad-hoc/runme.sh"] | [linux][2.8] include_vars fails when used as standalone command with dir | ##### SUMMARY
when the following command is run
`ansible -i /tmp/inventory -m include_vars --args "dir=../defaults name=role_defaults" --playbook-dir=../ansible-role-forgerock-ds frds`
it errors with
```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute '_data_source'
frds-user-01 | FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
```
if i edit `/usr/lib/python2.7/site-packages/ansible/plugins/action/include_vars.py` and comment out line `100`
```
results = dict()
if self.source_dir:
self._set_dir_defaults()
#self._set_root_dir()
if not path.exists(self.source_dir):
```
and rerun it returns the values contained within that directory.
I am using `molecule` to test the ansible role and have a workaround within `conftest.py` as follows
```
import pytest
@pytest.fixture(scope='module')
def ansible_vars(request, host):
defaults_files1 = "file=../../defaults/main/common.yml name=role_defaults"
defaults_files2 = "file=../../defaults/main/directory.yml name=role_defaults"
defaults_files3 = "file=../../defaults/main/proxy.yml name=role_defaults"
defaults_files4 = "file=../../defaults/main/replication.yml name=role_defaults"
vars_files = "file=../../vars/main.yml name=role_vars"
ansible_vars = host.ansible(
"include_vars",
defaults_files1)["ansible_facts"]["role_defaults"]
ansible_vars.update(host.ansible(
"include_vars",
defaults_files2)["ansible_facts"]["role_defaults"])
ansible_vars.update(host.ansible(
"include_vars",
defaults_files3)["ansible_facts"]["role_defaults"])
ansible_vars.update(host.ansible(
"include_vars",
defaults_files4)["ansible_facts"]["role_defaults"])
ansible_vars.update(host.ansible(
"include_vars",
vars_files)["ansible_facts"]["role_vars"])
return ansible_vars
```
but would prefer to use the correct command module to do so.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
`include_vars`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.4
config file = None
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 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
```
##### CONFIGURATION
`Return nothing`
##### OS / ENVIRONMENT
Linux, Centos 7.6
##### STEPS TO REPRODUCE
`ansible -i /tmp/inventory -m include_vars --args "dir=../defaults name=role_defaults" --playbook-dir=../ansible-role-forgerock-ds frds`
##### EXPECTED RESULTS
It returns all the values defined in all the files within the directory
##### ACTUAL RESULTS
```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute '_data_source'
frds-user-01 | FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
```
| https://github.com/ansible/ansible/issues/62633 | https://github.com/ansible/ansible/pull/66581 | 3f16752ed2da6348f290d32f72afcc04f6061927 | cc2376b782a0c423566f5f42968c5003387150ae | 2019-09-20T04:25:36Z | python | 2020-01-28T16:50:34Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,620 | ["changelogs/fragments/win_nssm-Implement-additional-parameters.yml", "lib/ansible/modules/windows/win_nssm.ps1", "lib/ansible/modules/windows/win_nssm.py"] | win_nssm Is setting some defaults that should have an option to overwrite | <!--- 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 -->
The win_nssm module has a few defaults set now that I think should allow for customization. For example I'd like to be able to set the following:
`AppRotateBytes 1000000`
`AppRotateOnline 1`
`AppStopMethodConsole 15000`
`AppStopMethodSkip 6`.
I had been setting them via win_shell command, but now the module and shell commands are battling one another.
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_nssm.ps1#L449
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_nssm.ps1#L439
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
win_nssm.ps1
| https://github.com/ansible/ansible/issues/62620 | https://github.com/ansible/ansible/pull/65131 | 2acfa0e08cf27400282f87e6b1b1cfdbcbc103a3 | d8982b4992c5944dc060a59728243169669956cc | 2019-09-19T19:28:53Z | python | 2019-12-01T20:49:07Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,613 | ["changelogs/fragments/ansible_basic_no_log_empty_string.yaml", "lib/ansible/module_utils/csharp/Ansible.Basic.cs", "test/integration/targets/win_csharp_utils/library/ansible_basic_tests.ps1"] | win_get_url fails with empty string proxy parameters | ##### SUMMARY
We have to support public and private environments where we may or may not have a proxy, so we configure tasks with proxy conditional on a `use_proxy` variable in our roles. After upgrading to 2.8 the `win_get_url` module fails if the proxy username and password paramters have an empty string value. Same code worked in 2.7
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_get_url
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.4
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, Apr 8 2019, 18:17:52) [GCC 8.3.0]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```
DEFAULT_LOCAL_TMP(/etc/ansible/ansible.cfg) = /tmp/ansible-$USER/ansible-local-1013gsipsbln
TRANSFORM_INVALID_GROUP_CHARS(/etc/ansible/ansible.cfg) = false
```
##### OS / ENVIRONMENT
Docker container based on `runatlantis/atlantis:v0.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
- debug:
msg:
- "proxy: {{ proxy }}"
- "proxy_password: {{ proxy_password is defined | ternary('<masked>', '<undefined>') }}"
- "proxy_username: {{ proxy_username is defined | ternary(proxy_username, '<undefined>') }}"
- name: Push a file (Windows)
win_get_url:
url: https://github.com/ansible/ansible/archive/v2.8.5.tar.gz
dest: C:\\Windows\\Temp\\
use_proxy: "{{ use_proxy }}"
proxy_url: "{{ proxy | default('') }}"
proxy_password: "{{ proxy_password | default('') }}"
proxy_username: "{{ proxy_username | default('') }}"
when: ansible_os_family == "Windows"
```
The `use_proxy` variable is defaulted to `no` in our `defaults/main.yml` and the rest have to be supplied if needed. After upgrading to 2.8 we have to instead supply a valid URL (ie the module is parsing out scheme, host, port and fails if not valid) and use `default('undefined')` for the credentials parameters.
##### EXPECTED RESULTS
```
TASK [build : Push a file (Windows)] *******************************************
skipping: [ci-agent-co7]
changed: [ci-agent-w16]
```
##### ACTUAL RESULTS
```
TASK [build : Push a file (Windows)] *******************************************
skipping: [ci-agent-co7]
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at <ScriptBlock>, <No file>: line 39
fatal: [ci-agent-w16]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: Exception calling \"Create\" with \"2\" argument(s): \"String cannot be of zero length.\r\nParameter name: oldValue\""}
```
| https://github.com/ansible/ansible/issues/62613 | https://github.com/ansible/ansible/pull/62804 | 1b3bf33bdf2530adb3a7cbf8055007acb09b3bb2 | 322e22583018a8f775c79baaa15021d799eb564e | 2019-09-19T18:15:29Z | python | 2019-09-25T01:45:53Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,564 | ["lib/ansible/modules/cloud/azure/azure_rm_virtualmachinescalesetinstance_info.py"] | azure_rm_virtualmachinescalesetinstance_facts should return computer name | <!--- 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 -->
Each VM instance in an Azure VM Scale Set (VMSS) has a computer name (hostname) which is distinct from the instance name. Currently azure_rm_virtualmachinescalesetinstance_facts returns the instance name but not the computer name. It would be extremely helpful if the module can return the computer name as well.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
azure_rm_virtualmachinescalesetinstance_facts
##### ADDITIONAL INFORMATION
<!--- Describe how the feature would be used, why it is needed and what it would solve -->
We are using this module in [Muchos](https://github.com/apache/fluo-muchos). If azure_rm_virtualmachinescalesetinstance_facts returned the computer name as well, it would help us populate etc/hosts and other related files much more seamlessly. | https://github.com/ansible/ansible/issues/62564 | https://github.com/ansible/ansible/pull/62566 | 153a322f54d2398973286bc6f86defeb101b57ae | 41bfd2bf0e7235e757af9377572798151e90ae44 | 2019-09-19T01:45:08Z | python | 2019-09-20T04:16:58Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,562 | ["changelogs/fragments/62598-AnsibleDumper-representer.yaml", "lib/ansible/parsing/yaml/dumper.py", "test/units/parsing/yaml/test_dumper.py"] | RepresenterError with looped lookups in YAML callback | ##### SUMMARY
Loading template files in a loop leads to RepresenterErrors using YAML callback
Note that in the real world, this can manifest itself in the task erroring out, although I can't reproduce that in a more minimal test case as yet - I hope that the below information is enough to eliminate the underlying issue.
Other notes:
* If I remove the trailing `-`, the task succeeds. But I added the trailing dash to counter #49579
* This works fine if I use the default stdout callback
* If there is only one element in the loop, we don't see the problem(!)
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/plugins/callback/yaml.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible-playbook 2.9.0b1
config file = /Users/will/tmp/ansible/2.9.0b1/ansible.cfg
configured module search path = [u'/Users/will/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/will/src/opensource/ansible/lib/ansible
executable location = /Users/will/src/opensource/ansible/bin/ansible-playbook
python version = 2.7.16 (default, Sep 2 2019, 11:59:44) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_STDOUT_CALLBACK(/Users/will/tmp/ansible/2.9.0b1/ansible.cfg) = yaml
```
##### OS / ENVIRONMENT
N/A
##### 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
vars:
kube_resource_manifests_from_files: []
kube_resource_manifest_files:
- a.yml
- b.yml
tasks:
- name: create manifests list
set_fact:
kube_resource_manifests_from_files: >-
{{ kube_resource_manifests_from_files + lookup('template', item)| from_yaml_all | list }}
loop: "{{ kube_resource_manifest_files }}"
```
echo "hello: world" > a.yml
echo "hello: world" > b.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 -->
As per 2.8.5
```
$ ansible-playbook play.yml -vvv -e app=xyz
ansible-playbook 2.8.5
config file = /Users/will/tmp/ansible/2.9.0b1/ansible.cfg
configured module search path = [u'/Users/will/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/will/src/opensource/ansible/lib/ansible
executable location = /Users/will/src/opensource/ansible/bin/ansible-playbook
python version = 2.7.16 (default, Sep 2 2019, 11:59:44) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
Using /Users/will/tmp/ansible/2.9.0b1/ansible.cfg as config file
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'
PLAYBOOK: play.yml ****************************************************************************************************************************************************************************************************************************
1 plays in play.yml
PLAY [localhost] ******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************
task path: /Users/will/tmp/ansible/2.9.0b1/play.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: will
<127.0.0.1> EXEC /bin/sh -c 'echo ~will && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638 `" && echo ansible-tmp-1568854487.54-231484033082638="` echo /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638 `" ) && sleep 0'
Using module file /Users/will/src/opensource/ansible/lib/ansible/modules/system/setup.py
<127.0.0.1> PUT /Users/will/.ansible/tmp/ansible-local-66982kKOKoR/tmpZAoBok TO /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638/ /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/local/opt/python@2/bin/python2.7 /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/will/.ansible/tmp/ansible-tmp-1568854487.54-231484033082638/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [create manifests list] ******************************************************************************************************************************************************************************************************************
task path: /Users/will/tmp/ansible/2.9.0b1/play.yml:10
ok: [localhost] => (item=a.yml) => changed=false
ansible_facts:
kube_resource_manifests_from_files:
- hello: world
ansible_loop_var: item
item: a.yml
ok: [localhost] => (item=b.yml) => changed=false
ansible_facts:
kube_resource_manifests_from_files:
- hello: world
- hello: world
ansible_loop_var: item
item: b.yml
META: ran handlers
META: ran handlers
PLAY RECAP ************************************************************************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
$ ansible-playbook play.yml -vvv -e app=xyz
ansible-playbook 2.9.0b1
config file = /Users/will/tmp/ansible/2.9.0b1/ansible.cfg
configured module search path = [u'/Users/will/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/will/src/opensource/ansible/lib/ansible
executable location = /Users/will/src/opensource/ansible/bin/ansible-playbook
python version = 2.7.16 (default, Sep 2 2019, 11:59:44) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
Using /Users/will/tmp/ansible/2.9.0b1/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its 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 its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its 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 its 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 its 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 its 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'
PLAYBOOK: play.yml ****************************************************************************************************************************************************************************************************************************
1 plays in play.yml
PLAY [localhost] ******************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************
task path: /Users/will/tmp/ansible/2.9.0b1/play.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: will
<127.0.0.1> EXEC /bin/sh -c 'echo ~will && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302 `" && echo ansible-tmp-1568854348.48-81455736502302="` echo /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302 `" ) && sleep 0'
Using module file /Users/will/src/opensource/ansible/lib/ansible/modules/system/setup.py
<127.0.0.1> PUT /Users/will/.ansible/tmp/ansible-local-66662BWCIQr/tmp6yajej TO /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302/ /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/local/opt/python@2/bin/python2.7 /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/will/.ansible/tmp/ansible-tmp-1568854348.48-81455736502302/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [create manifests list] ******************************************************************************************************************************************************************************************************************
task path: /Users/will/tmp/ansible/2.9.0b1/play.yml:10
[WARNING]: Failure using method (v2_runner_item_on_ok) in callback plugin (<ansible.plugins.callback.yaml.CallbackModule object at 0x106873210>): cannot represent an object: world
Callback Exception:
File "/Users/will/src/opensource/ansible/lib/ansible/executor/task_queue_manager.py", line 323, in send_callback
method(*new_args, **kwargs)
File "/Users/will/src/opensource/ansible/lib/ansible/plugins/callback/default.py", line 320, in v2_runner_item_on_ok
msg += " => %s" % self._dump_results(result._result)
File "/Users/will/src/opensource/ansible/lib/ansible/plugins/callback/yaml.py", line 123, in _dump_results
dumped += to_text(yaml.dump(abridged_result, allow_unicode=True, width=1000, Dumper=AnsibleDumper, default_flow_style=False))
File "/usr/local/lib/python2.7/site-packages/yaml/__init__.py", line 202, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/local/lib/python2.7/site-packages/yaml/__init__.py", line 190, in dump_all
dumper.represent(data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 28, in represent
node = self.represent_data(data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 57, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 225, in represent_dict
return self.represent_mapping(u'tag:yaml.org,2002:map', data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 123, in represent_mapping
node_value = self.represent_data(item_value)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 57, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 225, in represent_dict
return self.represent_mapping(u'tag:yaml.org,2002:map', data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 123, in represent_mapping
node_value = self.represent_data(item_value)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 57, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 217, in represent_list
return self.represent_sequence(u'tag:yaml.org,2002:seq', data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 101, in represent_sequence
node_item = self.represent_data(item)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 57, in represent_data
node = self.yaml_representers[data_types[0]](self, data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 225, in represent_dict
return self.represent_mapping(u'tag:yaml.org,2002:map', data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 123, in represent_mapping
node_value = self.represent_data(item_value)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 67, in represent_data
node = self.yaml_representers[None](self, data)
File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 249, in represent_undefined
raise RepresenterError("cannot represent an object: %s" % data)
ok: [localhost] => (item=b.yml) => changed=false
ansible_facts:
kube_resource_manifests_from_files:
- hello: world
- hello: world
ansible_loop_var: item
item: b.yml
META: ran handlers
META: ran handlers
PLAY RECAP ************************************************************************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/62562 | https://github.com/ansible/ansible/pull/62598 | c8e220a62e85dc817a17d0e1037c14a7a551cdff | 4cc4c44dd00aa07d29afc92e9d5bad473d5ca98d | 2019-09-19T00:58:29Z | python | 2019-09-19T18:27:48Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,530 | ["lib/ansible/module_utils/network/checkpoint/checkpoint.py"] | equals error 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 -->
fix if equals error code if command not found to output the relevant error 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 -->
check_point
##### 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 -->
run any cp module on a checkpoint machine which doesn't contain the "equals" command
<!--- 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 -->
Relevant hotfix is not installed on Check Point server. See sk114661 on Check Point Support Center.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
does not fail
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/62530 | https://github.com/ansible/ansible/pull/62529 | 2232232b4525336ebebcb4cee683095a48ac2775 | 55f285a384e5b787e93927bce568363bd91e47d8 | 2019-09-18T15:47:22Z | python | 2019-09-18T16:00:42Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,521 | ["lib/ansible/modules/windows/win_package.ps1"] | win_package path doesn't accept special characters | <!--- 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_package doesn't accept special characters in path such as '=' and '[]'. Test-Path command needs to use -LiteralPath instead of -Path. EXE cannot be renamed due to the install process. This is an off the shelf product and we can't modify it.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_package
##### 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
Windows Server 2016, Windows Server 2019
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Install an exe with characters such as '=' and '[]'.
- name: Install package
win_package:
path: 'C:\setupdownloader_[aHR0cHM6Ly9iaXQtZGVmBjL2luc3RhbGxlci54bWw-bGFuZz1lbi1VUw==].exe'
state: present
log_path: '{{ DownloadFolder }}\package_install.log'
##### EXPECTED RESULTS
Package should install.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
{
"_ansible_no_log": false,
"msg": "the file at the local path \"C:\\setupdownloader_[aHR0cHM6Ly9iaXQtZGVmBjL2luc3RhbGxlci54bWw-bGFuZz1lbi1VUw==].exe\" cannot be reached",
"changed": false,
"reboot_required": false
}
| https://github.com/ansible/ansible/issues/62521 | https://github.com/ansible/ansible/pull/62626 | 2a206f0e4c8cfdb431bd2b5f98992cb839e4a975 | 153a322f54d2398973286bc6f86defeb101b57ae | 2019-09-18T14:53:49Z | python | 2019-09-20T03:25:47Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,510 | ["changelogs/fragments/user-aix-shadow-unbound-local.yaml", "lib/ansible/modules/system/user.py"] | user module produces UnboundLocalError when targeting AIX nodes | <!--- 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 -->
In Ansible 2.8.2, using the `user` module against an AIX host produces the following error:
~~~
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_user_payload_IVarsv/__main__.py", line 2953, in <module>
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2892, in main
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 1056, in modify_user
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2402, in modify_user_usermod
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 886, in user_info
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 910, in user_password
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2517, in parse_shadow_file
UnboundLocalError: local variable 'b_passwd' referenced before assignment
~~~
This may be a possible regression as Ansible 2.7 executes `user` successfully.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
`user`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible-playbook 2.8.2
config file = /ansible/tower/projects/_214__mq_client_jar_deployment/ansible.cfg
configured module search path = [u'/var/lib/awx/.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-playbook
python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
IBM AIX
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
1. Run the `user` module against a set of IBM AIX nodes using Ansible 2.7.
2. Upgrade Ansible to 2.8.2.
3. Run the `user` module against a set of IBM AIX nodes using Ansible 2.8.2.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
tasks:
- name: Get sys user status
user:
name: sys
group: sys
check_mode: true
register: user_out
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Ansible should have executed the `user` module per the preceding playbook task.
~~~
TASK [Get sys user status] *****************************************************
ok: [node1.is.local]
ok: [node2.is.local]
ok: [node3.is.local]
ok: [node4.is.local]
~~~
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
Instead, the Ansible task fails with the following stack trace:
<!--- 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 "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2953, in <module>
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2892, in main
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 1056, in modify_user
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2402, in modify_user_usermod
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 886, in user_info
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 910, in user_password
File "/tmp/ansible_user_payload_IVarsv/__main__.py", line 2517, in parse_shadow_file
UnboundLocalError: local variable 'b_passwd' referenced before assignment
```
The stack trace goes back to `parse_shadow_file()`, which was introduced in the following commit: https://github.com/ansible/ansible/commit/f27eccabbd00f628f6e4195be7e1e4e5c463cba2#diff-8f60df5685f83b8659a1106d36591e93 | https://github.com/ansible/ansible/issues/62510 | https://github.com/ansible/ansible/pull/62547 | d8389d9f5513b8924a40767ef7d181cf41bfaea1 | e9d10f94b7722710c50f9923c7a7eea652a98228 | 2019-09-18T12:50:02Z | python | 2019-10-14T19:44:22Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,484 | ["changelogs/fragments/62621-docker_login-fix-60381.yaml", "lib/ansible/modules/cloud/docker/docker_login.py"] | Error "TypeError: 'in <string>' requires string as left operand, not bytes" in docker_login | <!--- 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 logging out from any Repository the play aborts with Message "TypeError: 'in <string>' requires string as left operand, not bytes". Our Ansible is using Python 3!
I found that the docker_login is searching for Bytes in the output of the 'docker logout..' command (e.g. _elif b'Removing login credentials for ' in out_). I changed this in my local Ansible code to strings to fix that. I cannot verify this with Python 2.x
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
docker_login
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = /home/app/nondocker/ansible/ansible.cfg
configured module search path = ['/home/app/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/app/containervol/python/python3/lib/python3.7/site-packages/ansible
executable location = /home/app/containervol/python/python3/bin/ansible
python version = 3.7.4 (default, Jul 30 2019, 19:56:38) [GCC 7.3.1 20180712 (Red Hat 7.3.1-6)]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_PIPELINING(/home/app/nondocker/ansible/ansible.cfg) = True
DEFAULT_HOST_LIST(env: ANSIBLE_INVENTORY) = ['/home/app/nondocker/SVN/trunk/Deploy_Artefakte/ansible/inventory.yml']
DEFAULT_LOG_PATH(/home/app/nondocker/ansible/ansible.cfg) = /home/app/nondocker/ansible/logs/ansible.log
DEFAULT_MANAGED_STR(/home/app/nondocker/ansible/ansible.cfg) = Ansible managed file - do not make changes here - they will be overwritten during next deployment!
```
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 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
- name: "log out of docker-hub-remote.bahnhub.tech.rz.db.de:443"
docker_login:
registry: 'docker-hub-remote.bahnhub.tech.rz.db.de:443'
state: absent
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
Successful logout of the Docker Repository.
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
2019-09-17 17:21:07,741 p=27466 u=app | <elokfiku-tst-app.dbv2-test.comp.db.de> EXEC /bin/sh -c '/home/app/containervol/python/python3/bin/python /home/app/.ansible/tmp/ansible-tmp-1568733667.5645123-182000990462949/AnsiballZ_docker_login.py && sleep 0'
2019-09-17 17:21:08,101 p=27466 u=app | fatal: [test_app]: FAILED! => {
"changed": false,
"module_stderr": "/home/app/.ansible/tmp/ansible-tmp-1568733667.5645123-182000990462949/AnsiballZ_docker_login.py:68: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\n import imp\nTraceback (most recent call last):\n File \"/home/app/.ansible/tmp/ansible-tmp-1568733667.5645123-182000990462949/AnsiballZ_docker_login.py\", line 262, in <module>\n _ansiballz_main()\n File \"/home/app/.ansible/tmp/ansible-tmp-1568733667.5645123-182000990462949/AnsiballZ_docker_login.py\", line 252, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/app/.ansible/tmp/ansible-tmp-1568733667.5645123-182000990462949/AnsiballZ_docker_login.py\", line 120, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/home/app/containervol/python/python3/lib64/python3.7/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/home/app/containervol/python/python3/lib64/python3.7/imp.py\", line 169, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 630, in _exec\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_docker_login_payload_enwvm0yw/__main__.py\", line 354, in <module>\n File \"/tmp/ansible_docker_login_payload_enwvm0yw/__main__.py\", line 343, in main\n File \"/tmp/ansible_docker_login_payload_enwvm0yw/__main__.py\", line 171, in __init__\n File \"/tmp/ansible_docker_login_payload_enwvm0yw/__main__.py\", line 227, in logout\nTypeError: 'in <string>' requires string as left operand, not bytes\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
<!--- Paste verbatim command output between quotes -->
```paste below
```
| https://github.com/ansible/ansible/issues/62484 | https://github.com/ansible/ansible/pull/62621 | a7b239708e961469b2c96451ec3c7df6e7b1a225 | 2e5137078d33db1b83f343edc0bf81fd4258f140 | 2019-09-18T08:43:23Z | python | 2019-09-21T13:13:31Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,441 | ["lib/ansible/modules/network/asa/asa_acl.py"] | Module asa_acl crashes when lines is an empty array | <!--- 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 module asa_acl crashes due to returning an undefined reference `acl_name` when the lines parameter is an empty array.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
asa_acl
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.5
config file = None
configured module search path = ['/Users/brettmitchell/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.2 (default, Jan 13 2019, 12:50:01) [Clang 10.0.0 (clang-1000.11.45.5)]
```
##### 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 -->
Check out the latest version of ansible
Run module asa_acl with an empty lines array
Note that the module crashes on line 162 in `parse_acl_name` due to `UnboundLocalError: local variable 'acl_name' referenced before assignment`
<!--- 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 -->
The module should execute successfully with no operation being performed
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
The module crashed
<!--- Paste verbatim command output between quotes -->
```paste below
Traceback (most recent call last):
File \"/Users/brettmitchell/.ansible/tmp/ansible-local-234681ttsab3b/ansible-tmp-1568737374.339541-43237010518318/AnsiballZ_asa_acl.py\", line 114, in <module>
_ansiballz_main()
File \"/Users/brettmitchell/.ansible/tmp/ansible-local-234681ttsab3b/ansible-tmp-1568737374.339541-43237010518318/AnsiballZ_asa_acl.py\", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File \"/Users/brettmitchell/.ansible/tmp/ansible-local-234681ttsab3b/ansible-tmp-1568737374.339541-43237010518318/AnsiballZ_asa_acl.py\", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File \"/var/folders/h9/4gjsgyxn6kbb0pdrt9rtn0840000gn/T/ansible_asa_acl_payload_IhH99W/__main__.py\", line 222, in <module>
File \"/var/folders/h9/4gjsgyxn6kbb0pdrt9rtn0840000gn/T/ansible_asa_acl_payload_IhH99W/__main__.py\", line 192, in main
File \"/var/folders/h9/4gjsgyxn6kbb0pdrt9rtn0840000gn/T/ansible_asa_acl_payload_IhH99W/__main__.py\", line 162, in parse_acl_name
UnboundLocalError: local variable 'acl_name' referenced before assignment
```
| https://github.com/ansible/ansible/issues/62441 | https://github.com/ansible/ansible/pull/63838 | bcc2ffdbf904a885813ed2007411b0c93936e9f1 | 895c8ce37341521582c413f0ad071de8e64cb6b7 | 2019-09-17T17:00:15Z | python | 2019-12-11T07:32:05Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,432 | ["changelogs/fragments/63555-postgresql_privs_typy_obj_types.yaml", "lib/ansible/modules/database/postgresql/postgresql_privs.py", "test/integration/targets/postgresql_privs/tasks/postgresql_privs_general.yml"] | postgresql_privs module should support Altering permissions on database object type TYPES | ##### SUMMARY
postgresql_privs module should support a type parameter option for TYPES to allow Grant/Revoke of usage permissions.
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
postgresql_privs
##### ADDITIONAL INFORMATION
Types is supported in for assigning default privs, but we dont have parity for the ability to modify permissions of existing TYPES objects, GRANT USAGE ON TYPE schema.obj TO role; | https://github.com/ansible/ansible/issues/62432 | https://github.com/ansible/ansible/pull/63555 | ae16a840f64e97f8d082c1f7d51342f0f587e68d | 7dd46f7b2ded8585ecb4e26f3c448c426d2008d9 | 2019-09-17T15:47:17Z | python | 2019-10-17T13:59:06Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,414 | ["test/integration/targets/hcloud_floating_ip_info/aliases"] | hcloud_floating_ip_info: test fails (two floating IPs, one expected) | <!--- 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 -->
`hcloud_floating_ip_info` functional test fails with the following error:
```
01:02 ok: [testhost] => {
01:02 "changed": false,
01:02 "hcloud_floating_ip_info": [
01:02 {
01:02 "description": "always-there-floating-ip",
01:02 "home_location": "fsn1",
01:02 "id": "62227",
01:02 "ip": "116.202.3.68",
01:02 "labels": {
01:02 "key": "value"
01:02 },
01:02 "server": "None",
01:02 "type": "ipv4"
01:02 },
01:02 {
01:02 "description": "another-floating-ip",
01:02 "home_location": "nbg1",
01:02 "id": "96926",
01:02 "ip": "94.130.190.147",
01:02 "labels": {},
01:02 "server": "None",
01:02 "type": "ipv4"
01:02 }
01:02 ],
01:02 "invocation": {
01:02 "module_args": {
01:02 "api_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
01:02 "endpoint": "https://api.hetzner.cloud/v1",
01:02 "id": null,
01:02 "label_selector": null
01:02 }
01:02 }
01:02 }
01:02
01:02 TASK [hcloud_floating_ip_info : verify test gather hcloud floating ip infos in check mode] ***
01:02 task path: /root/.ansible/test/tmp/hcloud_floating_ip_info-kl5v09bd-ÅÑŚÌβŁÈ/test/integration/targets/hcloud_floating_ip_info/tasks/main.yml:7
01:03 fatal: [testhost]: FAILED! => {
01:03 "assertion": "hcloud_floating_ips.hcloud_floating_ip_info| list | count == 1",
01:03 "changed": false,
01:03 "evaluated_to": false,
01:03 "msg": "Assertion failed"
01:03 }
```
See:
- https://app.shippable.com/github/ansible/ansible/runs/143452/145/console
- https://app.shippable.com/github/ansible/ansible/runs/143452/146/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 -->
hcloud_floating_ip_info
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
devel
```
| https://github.com/ansible/ansible/issues/62414 | https://github.com/ansible/ansible/pull/62494 | 97b15e9f0c4ddf419ca597e1b6769c29053bc06f | d5449eed11cc65035c0b127324f3bfa385c5c652 | 2019-09-17T13:09:54Z | python | 2019-09-18T11:55:05Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,411 | ["changelogs/fragments/pwsh-minimum.yaml", "lib/ansible/executor/powershell/bootstrap_wrapper.ps1"] | Allow to handle 'Not supported powershell version' | If i am blind pls close.
##### SUMMARY
I am working in environment where i may still catch some old w2k3 hosts which does not support Powershell > 2 - i those cases i would like to avoid processing and be able to handle error. Currently if old version of PoSH ins reached playbook will just fail not allowing me to handle it even with block + rescue.
In init part:
```
if($PSVersionTable.PSVersion.Major -lt 3)
{
write-host "Unsupported PoSH version"
exit
}
```
This can later be easily adjusted when requiring higher versions
##### ISSUE TYPE
- Bug report
##### COMPONENT NAME
`lib/ansible/plugins/connection/winrm.py`
| https://github.com/ansible/ansible/issues/62411 | https://github.com/ansible/ansible/pull/62634 | 77115247180e0dcb1178bed8654a7a6264bfa476 | d4ec9422a3159230b3b56dce5059ee3250bf800c | 2019-09-17T12:56:25Z | python | 2019-09-24T12:43:14Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,407 | ["changelogs/fragments/62407-wait_for_connection.yml", "lib/ansible/plugins/action/wait_for_connection.py"] | ansible/wait_for_connection: temp file from ~/.ansible/tmp not removed | ##### SUMMARY
a temp file is not removed everytime a playbook calling wait_for_connection is played.
a file named AnsiballZ_ping.py in a tmp folder is never removed.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
wait_for_connection
##### ANSIBLE VERSION
```
ansible 2.8.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/ansible']
ansible python module location = /home/user/ansible-2.8/lib/python2.7/site-packages/ansible
executable location = /home/user/ansible-2.8/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)]
```
```
ansible 2.9.0b1
config file = None
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/ansible-2.9/local/lib/python2.7/site-packages/ansible
executable location = /home/user/ansible-2.9/bin/ansible
python version = 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0]
```
##### OS / ENVIRONMENT
any linux
##### STEPS TO REPRODUCE
```yaml
- hosts: all
gather_facts: false
tasks:
- name: Wait for system to become reachable
wait_for_connection:
timeout: 10
```
```
PLAY [all] **********************************************************************************************************************************************************************************************************************************
TASK [Wait for system to become reachable] **************************************************************************************************************************************************************************************************
ok: [hostname] => {"changed": false, "elapsed": 2}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
hostname : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```
##### EXPECTED RESULTS
~/.ansible/tmp folder should be empty
##### ACTUAL RESULTS
```
./.ansible
./.ansible/tmp
./.ansible/tmp/ansible-tmp-1568722317.85-268965278526846
./.ansible/tmp/ansible-tmp-1568722317.85-268965278526846/AnsiballZ_ping.py
```
| https://github.com/ansible/ansible/issues/62407 | https://github.com/ansible/ansible/pull/64592 | fed049600542c4c478a2741f3a28ca1dbfd4497a | 68428efc39313b7fb22b77152ec548ca983b03dd | 2019-09-17T12:19:25Z | python | 2019-11-12T15:07:33Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,401 | ["changelogs/fragments/win_partition-var.yaml", "lib/ansible/modules/windows/win_partition.ps1"] | win_partition refers to non-existent variable $partition | <!--- 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_partition refers to variable $partition which has not been defined or set in the context that it is used
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
win_partition
##### ANSIBLE VERSION
2.8.5
##### STEPS TO REPRODUCE
Code for win_partition.ps1 contains the following lines, from line 222
```ps1
if ($null -ne $gpt_type -and $gpt_styles.$gpt_type -ne $partition.GptType) {
$module.FailJson("gpt_type is not a valid parameter for existing partitions")
}
if ($null -ne $mbr_type -and $mbr_styles.$mbr_type -ne $partition.MbrType) {
$module.FailJson("mbr_type is not a valid parameter for existing partitions")
}
```
However, the ```$partition``` variable is not defined so will always resolve to ```$null``` - did you mean ````$ansible_partition```` ?
| https://github.com/ansible/ansible/issues/62401 | https://github.com/ansible/ansible/pull/63968 | 8c4f59ebd959778178956022fbd015c5c6291c99 | 8b13836b1f318ee00c6482e71bfbdb7a49bd75f3 | 2019-09-17T10:14:05Z | python | 2019-11-12T04:44:18Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,370 | ["changelogs/fragments/70687-improve-deprecation-message-bare-variable.yaml", "lib/ansible/playbook/conditional.py"] | Deprecation warning about bare variable (list) misleading suggestion "| bool" | <!--- 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
Use Ansible 2.8 with a condition using a list variable. Witness deprecation warning:
[DEPRECATION WARNING]: evaluating [] as a bare variable, this behaviour will go
away and you might need to add |bool to the expression in the future. Also see
CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in
version 2.12.
"add |bool" is the wrong thing to do here most likely, because: https://medium.com/opsops/wft-bool-filter-in-ansible-e7e2fd7a148f
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
core?
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```
ansible 2.8.5
config file = /home/gert/ansible/ansible.cfg
configured module search path = ['/home/gert/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/gert/.local/share/virtualenvs/ansible-BCbjBVJM/lib/python3.6/site-packages/ansible
executable location = /home/gert/.local/share/virtualenvs/ansible-BCbjBVJM/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 -->
```
ANSIBLE_PIPELINING(/home/gert/ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/gert/ansible/ansible.cfg) = -o ControlMaster=auto
-o ControlPersist=60s
-o StrictHostKeyChecking=yes
-o GlobalKnownHostsFile=./files/openssh-client/ssh_known_hosts
-o UserKnownHostsFile=/dev/null
CACHE_PLUGIN(/home/gert/ansible/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/home/gert/ansible/ansible.cfg) = ~/.ansible/fact_cache
CACHE_PLUGIN_TIMEOUT(/home/gert/ansible/ansible.cfg) = 86400
DEFAULT_GATHERING(/home/gert/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/home/gert/ansible/ansible.cfg) = ['/home/gert/ansible/inventory']
DEFAULT_LOAD_CALLBACK_PLUGINS(/home/gert/ansible/ansible.cfg) = False
DEFAULT_STDOUT_CALLBACK(/home/gert/ansible/ansible.cfg) = yaml
DEFAULT_STRATEGY(/home/gert/ansible/ansible.cfg) = mitogen_linear
DEFAULT_STRATEGY_PLUGIN_PATH(/home/gert/ansible/ansible.cfg) = ['/home/gert/ansible/strategy_plugins']
```
##### 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 -->
Run the playbook below with `ansible-playbook` with version 2.8.x.
<!--- Paste example playbooks or commands between quotes below -->
```yaml
- hosts: localhost
vars:
myvar: []
tasks:
- debug: msg=foo
when: myvar
```
Witness the misleading solution to the deprecation warning as depicted in the summary.
<!--- 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 would have expected to see a suggestion about validating the length of the list, e.g.:
" add '| length > 0'"
instead of
" add |bool"
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes -->
```paste below
ansible-playbook --check test.yml
PLAY [localhost] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [debug] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: evaluating [] as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost]
PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
```
| https://github.com/ansible/ansible/issues/62370 | https://github.com/ansible/ansible/pull/70687 | ea58d7c2334c3da15ad8989be12c0909ee294369 | b87944926d887e6259e4e64bf9e8be596b3721a3 | 2019-09-16T22:50:57Z | python | 2020-08-18T22:55:30Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,367 | ["docs/docsite/rst/user_guide/become.rst"] | Deprecated variables do not point to the same data | <!--- 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 -->
`ansible_become_pass` and `ansible_become_password` do the same things but if you set one variable somewhere in your files, and then the other variable somewhere else, it is not overriden.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
variables
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.7.5
2.8.5
```
##### 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. -->
Linux
##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->
Try to set `ansible_become_pass` and `ansible_become_password` and debug them. They are hold different values while they are supposed to do the same thing. It probably applies to tons of similar variables.
<!--- 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 use the same value as it's an "alias" variable and since you change the variable names regularly
##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
`ansible_become_pass` and `ansible_become_password` do the same things but if you set one variable somewhere in your files, and then the other variable somewhere else, it is not overriden.
I ended up wasting 4 days of incomprehension... asking for support and wasting other people's time too | https://github.com/ansible/ansible/issues/62367 | https://github.com/ansible/ansible/pull/62462 | a4a216640fc7efe436f3f09808500b52ff6a63cd | d16ee65ecd3b7abfddaf7d7b6dc8d0da36093cbe | 2019-09-16T19:55:02Z | python | 2019-09-18T19:53:16Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,362 | ["changelogs/fragments/yum_backend_validation.yml", "lib/ansible/plugins/action/yum.py"] | Feature or bug? yum module falls back to apt on Debian | ##### SUMMARY
I was working on an example of what _not_ to do—namely, using the `yum` module instead of `package` for something meant to be platform agnostic... but then I realized my example (using the `yum` module on Debian) _actually worked_.
When I ran the `yum` task with `-vvvv` I found:
```
Running apt as the backend for the yum action plugin
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
```
Is this a bug? A feature? I found it can also lead to unexpected weird behavior that I believe is due to strange fallback behavior.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
yum
##### ANSIBLE VERSION
```paste below
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/Users/jgeerling/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.16 (default, Apr 12 2019, 15:32:40) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)]
```
##### CONFIGURATION
```paste below
N/A
```
##### OS / ENVIRONMENT
Debian 10
##### STEPS TO REPRODUCE
1. Run a Docker image with Debian 10.
docker run -it geerlingguy/docker-debian10-ansible /bin/bash
1. Check if stress installed. Nothing listed.
apt list --installed | grep stress
1. Create a playbook for demonstration.
cat << EOF > main.yml
---
- hosts: localhost
gather_facts: false
connection: local
tasks:
- apt: update_cache=true
- yum: name=stress state=present
EOF
1. Run the playbook.
ansible-playbook main.yml
1. Check if stress installed.
apt list --installed | grep stress
stress/stable,now 1.0.4-4 amd64 [installed]
When run with `-vvvv`, the `yum` task gives: https://pastebin.com/Q4SSduVH
##### EXPECTED RESULTS
I expected a task failure, saying something like "`yum` or `dnf` are not available on this system."
##### ACTUAL RESULTS
The task worked. It said 'changed' or 'ok' and worked idempotently.
I was bewildered. Surprise was apparent. I even said something in IRC about it. | https://github.com/ansible/ansible/issues/62362 | https://github.com/ansible/ansible/pull/69296 | 794d269a4d7b02ff0a5d44353d22c86bea1e8d26 | d446a4f70d13f7c33e5340468f67d622808313bf | 2019-09-16T18:41:07Z | python | 2020-05-05T16:48:54Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,331 | ["hacking/aws_config/testing_policies/network-policy.json", "lib/ansible/modules/cloud/amazon/ec2_eip.py", "test/integration/targets/ec2_eip/defaults/main.yml", "test/integration/targets/ec2_eip/tasks/main.yml"] | ec2_eip throws error if you ensure: absent on a non-existent IP | ##### SUMMARY
If you try to re-release an elastic IP (ensure: absent) which has already been released ec2_eip throws an error rather than simply returning "ok".
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
lib/ansible/modules/cloud/amazon/ec2_eip.py
##### ANSIBLE VERSION
devel
##### CONFIGURATION
N/A ansible-test
##### OS / ENVIRONMENT
N/A ansible-test
##### STEPS TO REPRODUCE
```
#==================================================================
# Allocation from a pool
- name: allocate a new eip from a pool
ec2_eip:
state: present
in_vpc: yes
public_ipv4_pool: amazon
register: eip
- ec2_eip_info:
register: eip_info
- assert:
that:
- eip is defined
- eip is changed
- eip.public_ip is defined and eip.public_ip != ""
- eip.allocation_id is defined and eip.allocation_id != ""
#==================================================================
# EIP Deletion
- name: Release eip
ec2_eip:
state: absent
public_ip: "{{ eip.public_ip }}"
register: eip_release
- ec2_eip_info:
register: eip_info
- assert:
that:
- eip_release is defined
- eip_release is changed
- name: Rerelease eip (no change)
ec2_eip:
state: absent
public_ip: "{{ eip.public_ip }}"
register: eip_release
- ec2_eip_info:
register: eip_info
- assert:
that:
- eip_release is defined
- eip_release is not changed
```
##### EXPECTED RESULTS
Play completes successfully
##### ACTUAL RESULTS
```
TASK [ec2_eip : Rerelease eip (no change)] *************************************
task path: /root/.ansible/test/tmp/ec2_eip-4v9k8sww-ÅÑŚÌβŁÈ/test/integration/targets/ec2_eip/tasks/main.yml:326
<testhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<testhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<testhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029 `" && echo ansible-tmp-1568552830.3837097-100844260545029="` echo /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029 `" ) && sleep 0'
Using module file /root/ansible/lib/ansible/modules/cloud/amazon/ec2_eip.py
<testhost> PUT /root/.ansible/tmp/ansible-local-126l_udgy92/tmppojiib6x TO /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029/AnsiballZ_ec2_eip.py
<testhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029/ /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029/AnsiballZ_ec2_eip.py && sleep 0'
<testhost> EXEC /bin/sh -c 'ANSIBLE_DEBUG_BOTOCORE_LOGS=True /tmp/python-tkg1ink4-ansible/python /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029/AnsiballZ_ec2_eip.py && sleep 0'
<testhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1568552830.3837097-100844260545029/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_ec2_eip_payload_jseaw6r8/ansible_ec2_eip_payload.zip/ansible/modules/cloud/amazon/ec2_eip.py", line 317, in find_address
File "/tmp/ansible_ec2_eip_payload_jseaw6r8/ansible_ec2_eip_payload.zip/ansible/module_utils/aws/core.py", line 283, in deciding_wrapper
return unwrapped(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 661, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAddress.NotFound) when calling the DescribeAddresses operation: Address '52.43.70.125' not found.
fatal: [testhost]: FAILED! => {
"boto3_version": "1.9.204",
"botocore_version": "1.12.204",
"changed": false,
"error": {
"code": "InvalidAddress.NotFound",
"message": "Address '52.43.70.125' not found."
},
"invocation": {
"module_args": {
"allow_reassociation": false,
"aws_access_key": "REDACTED",
"aws_secret_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"debug_botocore_endpoint_logs": true,
"device_id": null,
"ec2_url": null,
"in_vpc": true,
"private_ip_address": null,
"profile": null,
"public_ip": "52.43.70.125",
"public_ipv4_pool": null,
"region": "us-west-2",
"release_on_disassociation": false,
"reuse_existing_ip_allowed": false,
"security_token": null,
"state": "absent",
"tag_name": null,
"tag_value": null,
"validate_certs": true,
"wait_timeout": 300
}
},
"msg": "Couldn't obtain list of existing Elastic IP addresses: An error occurred (InvalidAddress.NotFound) when calling the DescribeAddresses operation: Address '52.43.70.125' not found.",
"resource_actions": [
"ec2:DescribeAddresses"
],
"response_metadata": {
"http_headers": {
"connection": "close",
"date": "Sun, 15 Sep 2019 13:07:11 GMT",
"server": "AmazonEC2",
"transfer-encoding": "chunked"
},
"http_status_code": 400,
"request_id": "c4b65cd8-02de-4503-af3a-0e498db40d53",
"retry_attempts": 0
}
}
```
| https://github.com/ansible/ansible/issues/62331 | https://github.com/ansible/ansible/pull/62332 | f8f76628500052ad3521fbec16c073ae7f99d287 | b5f484dcc35f2b6adfbf53d075762578b83d942f | 2019-09-15T15:43:36Z | python | 2019-11-13T20:27:35Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,327 | ["changelogs/fragments/63419-docker_container-defaults.yml", "docs/docsite/rst/porting_guides/porting_guide_2.10.rst", "lib/ansible/modules/cloud/docker/docker_container.py"] | docker_container: remove defaults for various options | ##### SUMMARY
Various options which reflect container properties have default values. In particular, these are `auto_remove`, `detach`, `init`, `interactive`, `memory`, `paused`, `privileged`, `read_only`, `tty`. While the defaults usually make sense (and coincide with the defaults used by docker), these are highly problematic in situations where not all options affected by a container are specified in `docker_container` usages.
For example, when `docker_container` is used with `restart: yes`, and no other options are specified, the container is restarted, **except** if the container uses a non-default value for one of these properties. In that case, the module will recreate the container with no options (except the implicit defaults), which is usually **not** what the user wants.
Unfortunately, removing the defaults breaks backwards compatibility. The obvious solution to this, i.e. deprecating the default values (and remove them in four versions, i.e. 2.14) is also not very good, since it will create a *lot* of noise, since in most tasks and playbooks, these options are not specified (and thus the deprecation warning for each of them should be shown). Telling users to disabling warnings for `docker_container` tasks is not a good idea either, especially since in some cases, warnings from docker daemon are passed on.
This issue is about discussing this problem and collecting ideas on how this issue can be resolved eventually. Feel free to add any ideas or comments you have!
##### ISSUE TYPE
- Feature Idea
- Bug Report
##### COMPONENT NAME
docker_container
##### ANSIBLE VERSION
```
all
``` | https://github.com/ansible/ansible/issues/62327 | https://github.com/ansible/ansible/pull/63419 | 18f4f0549faabefbd0457cde0dd86b0d0fed406b | 5c973dd147d2d0bfb2f2affc37664f174eea0a0d | 2019-09-15T11:19:55Z | python | 2019-10-28T20:40:48Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,324 | ["lib/ansible/modules/cloud/docker/docker_container.py"] | docker container loses networks on restarts when using with init: true | <!--- 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 -->
With `init: true` set in the `docker_container` module, a container restarted with `docker_container` loses it network settings and is attached to the default bridge again.
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
* `docker_container`
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.8.4
config file = /home/.../.../ansible.cfg
configured module search path = ['/home/.../.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]
```
##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
Default configuration without any changes.
##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
* ArchLinux
##### 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 test container
hosts: localhost
gather_facts: false
become: true
tasks:
- name: create a network
docker_network:
name: special
- name: create a container with init set to true
docker_container:
name: 'test'
state: started
pull: true
init: true
image: 'traefik'
restart_policy: always
networks_cli_compatible: true
networks:
- name: special
- name: restart test container after creation
docker_container:
name: 'test'
state: started
restart: true
...
```
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
The container should be restarted with the same settings and the diff should show the same as with `init: false`:
```
TASK [restart test container after creation] **************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
- "restarted": false,
+ "restarted": true,
"running": true
}
```
`docker inspect` still shows the custom network to be configured:
```
$ docker inspect test -f "{{ .NetworkSettings.Networks }}"
map[special:0xc00056a000]
```
##### ACTUAL RESULTS
```paste below
TASK [restart test container after creation] **************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
- "init": true,
+ "init": false,
"running": true
}
```
`docker inspect` confirms that container has lost its custom network:
```
$ docker inspect test -f "{{ .NetworkSettings.Networks }}"
map[bridge:0xc0001f0f00]
``` | https://github.com/ansible/ansible/issues/62324 | https://github.com/ansible/ansible/pull/62325 | 75dfe6c88aee21b26e86b0aa03dacb07b627c80e | fd627e3b7876b43f2999cb90349c398f26b92fa3 | 2019-09-15T10:43:33Z | python | 2019-09-29T12:52:47Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,286 | ["test/integration/targets/setup_zabbix/defaults/main.yml", "test/integration/targets/setup_zabbix/tasks/main.yml", "test/integration/targets/setup_zabbix/tasks/setup.yml", "test/integration/targets/setup_zabbix/templates/zabbix_server.conf.j2", "test/integration/targets/zabbix_host/tasks/main.yml"] | zabbix_host tests are not run by CI | <!--- 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
`zabbix_host` functional test depends on Ubuntu 14.04. But this OS is not run by the CI since c8f2becb7a3d15b6c8dd8aa29eb8d0e6b7d7a9ae.
<!--- Explain the problem briefly below -->
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
zabbix_host
setup_zabbix
<!--- 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
devel
``` | https://github.com/ansible/ansible/issues/62286 | https://github.com/ansible/ansible/pull/63744 | 07ed860c2b5c1fdabdd30b628e8f44c829d243b6 | 57c36e037815b6344c24922c069b6e0b2d0bcc71 | 2019-09-13T15:52:15Z | python | 2019-10-25T10:28:20Z |
closed | ansible/ansible | https://github.com/ansible/ansible | 62,249 | ["lib/ansible/modules/windows/win_format.py"] | Doc for win_format does not mention it is for Windows v6.2 or higher | ##### SUMMARY
Documentation for win_format does not mention that it only works on Windows v6.2 or higher - this is only apparent from looking at the code.
The similar module win_partition includes the line:
A minimum Operating System Version of 6.2 is required to use this module. To check if your OS is compatible, see https://docs.microsoft.com/en-us/windows/desktop/sysinfo/operating-system-version.
##### ISSUE TYPE
- Documentation Report
##### COMPONENT NAME
win_format
##### ANSIBLE VERSION
2.8.4
| https://github.com/ansible/ansible/issues/62249 | https://github.com/ansible/ansible/pull/65617 | 88bba21708668487fbc6fdaeb2bd148b6208cecc | 02539c9a3741af7f11bff9ee31d23364ed39befd | 2019-09-13T10:17:07Z | python | 2019-12-10T15:16:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.