Hi community,
I was trying to run the ad-hoc ping from the tower but having issues.
In my case, I’m trying to manage the RHEL6 server having different cipher suites than RHEL7 . In ansible.cfg file I’ve edited the “ssh_args = -c aes128-cbc” and ansible cli command works fine.
but when I use the tower UI, I see that ssh_args are not being picked up while establishing the ssh connection toward the rhel6 server.
Ansible CLI: (Success)
SSH: EXEC ssh -vvv -c aes128-cbc -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 testserver ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’
Tower UI: (Debug Error)
ansible 2.5.4
config file = /etc/ansible/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
python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /tmp/awx_19_VcxGTo/tmpfswEZ8.awxrest.py inventory source with script plugin
META: ran handlers
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/basic.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/_text.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/parsing/convert_bool.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/parsing/init.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/six/init.py
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/ping.py
ESTABLISH SSH CONNECTION FOR USER: root
SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=root)
SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
SSH: EXEC ssh -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 testserver ‘/bin/sh -c ‘"’“‘echo ~root && sleep 0’”’"‘’
(255, ‘’, ‘No user exists for uid 195\r\n’)
testserver | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: No user exists for uid 195\r\n”,
“unreachable”: true
}
Is there a solution to this problem ?
Thanks