Hi,
I have a ssh connection problem with a host when I launch a template.
" “msg”: “Failed to connect to the host via ssh: ssh: Could not resolve hostname xxxxx: Name or service not known\r\n”,
But when I connect from the hosts where it is running awx connect without problems.
I am dns in the machine where de Aex is ok.
Attach logs,
Identity added: /tmp/awx_37_E7foF2/credential_2 (/tmp/awx_37_E7foF2/credential_2)
ansible-playbook 2.4.1.0
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-playbook
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Using /etc/ansible/ansible.cfg as config file
Parsed /tmp/awx_37_E7foF2/inventory inventory source with script plugin
PLAYBOOK: dns.yml **************************************************************
1 plays in dns.yml
PLAY [all] *********************************************************************
14:29:11
TASK [Gathering Facts] *********************************************************
14:29:11
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
ESTABLISH SSH CONNECTION FOR USER: soporte
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=soporte -o ConnectTimeout=10 -o ControlPath=/tmp/awx_37_E7foF2/cp/%h%p%r dliwebfe01 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’
ESTABLISH SSH CONNECTION FOR USER: soporte
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=soporte -o ConnectTimeout=10 -o ControlPath=/tmp/awx_37_E7foF2/cp/%h%p%r dliwebfe02 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’
(255, ‘’, ‘ssh: Could not resolve hostname dliwebfe01: Name or service not known\r\n’)
(255, ‘’, ‘ssh: Could not resolve hostname dliwebfe02: Name or service not known\r\n’)
fatal: [dliwebfe01]: UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: ssh: Could not resolve hostname dliwebfe01: Name or service not known\r\n”,
“unreachable”: true
}
fatal: [dliwebfe02]: UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: ssh: Could not resolve hostname dliwebfe02: Name or service not known\r\n”,
“unreachable”: true
}
Regards,