KC:
@here
I am using ansible version 2.5.1 ansible master node
Now, I have created new client node with Ubuntu 22.04 I am trying with
ansible -m ping -i inventories/hosts -u ansible NEW_NODE_NAME -vvvv
This is not working. Giving below error.
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to 2x.x.x.x5 closed.
module_stdout: |-
Traceback (most recent call last):
File "/tmp/ansible_wka4j537/ansible_module_ping.py", line 62, in <module>
from ansible.module_utils.basic import AnsibleModule
File "/tmp/ansible_wka4j537/ansible_modlib.zip/ansible/module_utils/basic.py", line 80, in <module>
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
msg: MODULE FAILURE
rc: 1However, I am able to do ssh with both IP/HOSTNAME from Ansible master node using same rsa key
Anyone has faced this issue before please post here or 1:1 to me.
Thanks in advance.