I need help fixing "[Errno -3] Temporary failure in name resolution"}

1,999 views
Skip to first unread message

Richard

unread,
Dec 3, 2019, 9:04:59 PM12/3/19
to Ansible Project
ansible@denchpw26:~$ ansible-playbook -i ICSR, -u ansible -k -e ansible_network_os=ios test_playbook.yml
SSH password:

PLAY [Pre and Post Cisco show Command] *********************************************************************************

TASK [Get a timestamp] *************************************************************************************************
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host ICSR should use /usr/bin/python3, but is using /usr/bin/python
 for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
 for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
changed: [ICSR]

TASK [Show commands] ***************************************************************************************************
fatal: [ICSR]: FAILED! => {"changed": false, "msg": "[Errno -3] Temporary failure in name resolution"}

PLAY RECAP *************************************************************************************************************
ICSR                       : ok=1    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Dick Visser

unread,
Dec 3, 2019, 11:41:40 PM12/3/19
to ansible...@googlegroups.com
It’s pretty obvious from the error. You need to fix the name resolution on your control host. 
This is part of basic system administration and not something specific to ansible though. 


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cc7d3748-946a-4937-abce-c39e7c99285c%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Sunil Amperayani

unread,
Dec 3, 2019, 11:43:28 PM12/3/19
to ansible...@googlegroups.com
Update /etc/hosts or check your resolver in /etc/resolv.conf file and rerun the playbook

Reply all
Reply to author
Forward
0 new messages