I have a task that works fine for Ansible 2.9.7, but fails when I upgrade
to 2.10.3.
```
yaml
- name: Ping ServiceNow IP Address
shell: "ping -c 1 -w 5 {{ sn_ip_address | trim }}"
ignore_errors: true
register: ping_result_sn_ip_address_raw
when: sn_ip_address | trim | ipv4
failed_when: false
changed_when: false
delegate_to: localhost
```
When the task is run with Ansible 2.10.3, I receive:
[WARNING]: Unhandled error in Python interpreter discovery for host
some_snow_host: Failed to connect to the host via ssh: ssh: connect to host
localhost port 22: Cannot assign requested address
fatal: [some_snow_host]: UNREACHABLE! => {
"changed": false,
"unreachable": true
}
MSG:
Data could not be sent to remote host "localhost". Make sure this host can
be reached over ssh: ssh: connect to host localhost port 22: Cannot assign
requested address
*Note:* there are other tasks in the same playbook that use "delegate_to:
localhost" that work fine, although those tasks are not using the "shell"
module.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f611a043-754e-4853-863c-6cd7493f5a16n%40googlegroups.com.