Ansible jobs fail with error Failed to connect to the host via ssh: ssh_exchange_identification: read: Connection reset by peer when executed through Red Hat Satellite 6.
Issue
- You can run ansible jobs from the satellite server using
ansible-playbook
command, but when calling the same (or similar) playbook via the Red Hat Satellite WebUI, it doesn't work. -
While performing remote execution task with ansible role, remote execution task is working fine but the ansible role is getting failed on a perticular step:
- output_type: stdout output: "\r\nTASK [rvm.ruby : Detect rvm installer] *****************************************\n" timestamp: 1600277939.4459376 - output_type: stdout output: "\n" timestamp: 1600277939.4460862 - output_type: stdout output: 'fatal: [client.satellite.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh_exchange_identification: read: Connection reset by peer", "unreachable": true} ' timestamp: 1600277941.5522091 - output_type: stdout output: |- PLAY RECAP ********************************************************************* client.satellite.com : ok=2 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 timestamp: 1600277941.5523505 exit_status: 1
Environment
- Red Hat Satellite 6.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.