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

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
platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
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

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.

Update /etc/hosts or check your resolver in /etc/resolv.conf file and rerun the playbook