Ansible on Google Cloud using IAP Install python3 -m venv venv . venv/bin/activate python3 -m pip install -r requirements.txt Usage Edit inventory.gcp.yml and list your projects under projects: ansible-playbook -v -i inventory.gcp.yml test.playbook.yml Documentation Google Cloud Platform Guide - Ansible Documentation Google.Cloud - Ansible Documentation Thanks binx.io - How to tell Ansible to use GCP IAP tunneling