Unable to run playbook on multiple hosts due to [Errno -3] Temporary failure in name resolution"}

I need help to run my playbook on multiple hosts
I’m only able to run on a single host using IP address

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

TASK [Get a timestamp] **********************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Distribution Ubuntu 16.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

Thanks

You need to make sure that name resolution on your control node is
working properly.
i.e., the name "ICSR" should be resolvable to an IP address.