# Using Ansible with IAP tunneling returns \[Errno -3\] Temporary failure in name resolution

**URL:** <https://forum.ansible.com/t/using-ansible-with-iap-tunneling-returns-errno-3-temporary-failure-in-name-resolution/36211>\
**Category:** Ansible Project\
**Tags:** gcp\
**Created:** [January 17, 2022, 10:08pm UTC](https://forum.ansible.com/t/using-ansible-with-iap-tunneling-returns-errno-3-temporary-failure-in-name-resolution/36211 "2022-01-17T22:08:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halima\_Mounsiit](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Halima\_Mounsiit](https://forum.ansible.com/u/Halima_Mounsiit)\
**Post date:** [January 17, 2022, 10:08pm UTC](https://forum.ansible.com/t/using-ansible-with-iap-tunneling-returns-errno-3-temporary-failure-in-name-resolution/36211/1 "2022-01-17T22:08:47Z")

</div>

Hello,

I am trying to run ansible playbooks using IAP tunneling to connect to my virtual machines on GCP that do not have external IP addresses. But, I am having this error :  
test-vm-ee64a2421adb46ba-1 | UNREACHABLE! =\> { “changed”: false, “msg”: “[Errno -3] Temporary failure in name resolution”, “unreachable”: true }

In fact I followed the steps given in this link : [https://stackoverflow.com/questions/58996471/ansible-gcp-iap-tunnel](https://stackoverflow.com/questions/58996471/ansible-gcp-iap-tunnel)

I am not sure If I understood what’s happening, but, apparently, Ansible ignores the ssh\_executable that I added in ansible.cfg, I don’t think that the wrapper that runs the command gcloud compute ssh “hostname” is ever executed. I don’t know the reason.  
Can someone help please ?
