SSH is stuck when i am running a playbook or ping request

Hello All,

I am trying to run the Ansible playbook with ansible version [core 2.12.10]. i tried to take manually ssh for that specific host.
previously I am using the 2.9 version there is no issue of the SSH connection.

following is the last verbose logs after run the Ansible-playbook

ESTABLISH SSH CONNECTION FOR USER: Username
SSH: EXEC sshpass -d10 ssh -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ‘User=“Username”’ -o ConnectTimeout=60 -o ‘ControlPath=“/tmp/ansible-ssh-%h-%p-%r”’ 172.24.1.8 ‘/bin/sh -c ‘"’“‘echo ~username && sleep 0’”’"‘’

I tried to look it up but was unable to find any information, appreciate your help on this.

Hi Ravi,

I installed Ansible as per procedure soo when I am checking it’s showing ansible core 2.12.10 & I tried to downgrade the Ansible version to 2.9.0. However, still there is the same issue SSH connection is stuck in the Establish process.