# \#gcp

**URL:** https://forum.ansible.com/tag/gcp/80.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [Custom DNS server in resolv.conf for the AWX job container](https://forum.ansible.com/t/custom-dns-server-in-resolv-conf-for-the-awx-job-container/44562)

<div class="topic-metadata">

**Author:** [@manoj\_Sardana](https://forum.ansible.com/u/manoj_Sardana)\
**Replies:** 2\
**Last updated:** [September 1, 2026, 8:11am UTC](https://forum.ansible.com/t/custom-dns-server-in-resolv-conf-for-the-awx-job-container/44562 "2026-09-01T08:11:58Z")

</div>

I am using AWX installation in K8s using AWX operator. As part of of our job template, we need to pull some files from an external private git repo. Git repo is a private URL resolvable by a private custom DNS server. Fo…

---

## [GCP IAP Connectivity for Windows VM instance](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959)

<div class="topic-metadata">

**Author:** [@prateektl](https://forum.ansible.com/u/prateektl)\
**Replies:** 2\
**Last updated:** [December 10, 2025, 9:18am UTC](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959 "2025-12-10T09:18:59Z")

</div>

Has anyone successfully executed a awx job template run for the inventory which consist of GCP windows VM host? My Execution Instance is a GCP linux \[rhel9\] vm instance which has been attached to AWX. I have a service a…

---

## [ControlPersist settings not working as expected in gcp connection](https://forum.ansible.com/t/controlpersist-settings-not-working-as-expected-in-gcp-connection/44578)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 0\
**Last updated:** [September 30, 2025, 5:28am UTC](https://forum.ansible.com/t/controlpersist-settings-not-working-as-expected-in-gcp-connection/44578 "2025-09-30T05:28:09Z")

</div>

gcloud SSH succeeds in AWX, but ControlPersist/SSH multiplexing settings are not applied Dear Community, We built a custom wrapper script to connect to GCP VMs from AWX, as no native plugin supports this. SSH works, b…

---

## [\[Vote ended on 2025-07-21\] Collection removal: google.cloud](https://forum.ansible.com/t/vote-ended-on-2025-07-21-collection-removal-google-cloud/8609)

<div class="topic-metadata">

**Author:** [@gotmax23](https://forum.ansible.com/u/gotmax23)\
**Replies:** 19\
**Last updated:** [July 30, 2025, 5:07pm UTC](https://forum.ansible.com/t/vote-ended-on-2025-07-21-collection-removal-google-cloud/8609 "2025-07-30T17:07:32Z")

</div>

As per Collections Removal Process — Collections not satisfying the Collection requirements , google.cloud is subject to removal from Ansible 12 after failing to address policy violations. (Removal from Ansible) Communit…

---

## [Need help in AWX migration from OCP (Openshift) to GCP](https://forum.ansible.com/t/need-help-in-awx-migration-from-ocp-openshift-to-gcp/43017)

<div class="topic-metadata">

**Author:** [@Hussain\_Peera](https://forum.ansible.com/u/Hussain_Peera)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 9:29pm UTC](https://forum.ansible.com/t/need-help-in-awx-migration-from-ocp-openshift-to-gcp/43017 "2025-05-26T21:29:29Z")

</div>

Hi Community and ansible team, I am using awx-operator v2.12.2 in my Openshift cluster and now i am moving to GCP hence i request you to provide a comprehensive guide or any kind of support to achieve this successfully …

---

## [Understanding become: true and become\_user: root not working in custom GCP connection setup](https://forum.ansible.com/t/understanding-become-true-and-become-user-root-not-working-in-custom-gcp-connection-setup/42685)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 1:46pm UTC](https://forum.ansible.com/t/understanding-become-true-and-become-user-root-not-working-in-custom-gcp-connection-setup/42685 "2025-05-16T13:46:46Z")

</div>

become\_user: root is not working as expected. Dear community, In the background, We have established the connectivity to the GCP VMs using the Service account JSON with below command # --- Connect using OS Login and s…

---

## [Delegate\_to: localhost is not working as expected](https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 12\
**Last updated:** [April 30, 2025, 8:33am UTC](https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995 "2025-04-30T08:33:39Z")

</div>

delegate\_to: localhost is not working as expected.. Dear community, Looks like I am stuck in a loop.So I have a project which has the main playbook which calls a role for the GCP connection using IAP. My project is -…

---

## [Cannot copy the files from local/repo to GCP vm](https://forum.ansible.com/t/cannot-copy-the-files-from-local-repo-to-gcp-vm/42244)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 3\
**Last updated:** [April 29, 2025, 4:19am UTC](https://forum.ansible.com/t/cannot-copy-the-files-from-local-repo-to-gcp-vm/42244 "2025-04-29T04:19:40Z")

</div>

\*\*Cannot copy the files using copy module from local to GCP Vm instances \*\*. Dear community , I am using a custom plugin to connect to GCP and do SSH/SCP. The plugin I am using is here. GitHub - thenets/demo-ansible-g…

---

## [AWX to GCP VM : Establish and Maintain IAP Tunnel for Subsequent Playbook Execution](https://forum.ansible.com/t/awx-to-gcp-vm-establish-and-maintain-iap-tunnel-for-subsequent-playbook-execution/42035)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 6\
**Last updated:** [April 28, 2025, 2:06pm UTC](https://forum.ansible.com/t/awx-to-gcp-vm-establish-and-maintain-iap-tunnel-for-subsequent-playbook-execution/42035 "2025-04-28T14:06:06Z")

</div>

AWX to GCP SSH connectivity is getting closed for subsequent playbook Execution. Dear community, My project --- - name: Establish GCP connectivity using impersonated SA hosts: all gather\_facts: false any\_errors\_…

---

## [How to use GCP service account for ssh authentication in AWX](https://forum.ansible.com/t/how-to-use-gcp-service-account-for-ssh-authentication-in-awx/3276)

<div class="topic-metadata">

**Author:** [@Anitha-1599](https://forum.ansible.com/u/Anitha-1599)\
**Replies:** 2\
**Last updated:** [April 27, 2025, 7:13pm UTC](https://forum.ansible.com/t/how-to-use-gcp-service-account-for-ssh-authentication-in-awx/3276 "2025-04-27T19:13:56Z")

</div>

Hey all, I am new to AWX and Ansible. We have an AWX setup and have to execute playbooks on multiple servers in different projects using a service account for login. How can we set up this What permissions need to be…

---

## [Execute DDL scripts on GCP Cloud SQL instance via Ansible](https://forum.ansible.com/t/execute-ddl-scripts-on-gcp-cloud-sql-instance-via-ansible/8394)

<div class="topic-metadata">

**Author:** [@Chandra\_Mukherjee](https://forum.ansible.com/u/Chandra_Mukherjee)\
**Replies:** 6\
**Last updated:** [April 25, 2025, 8:57pm UTC](https://forum.ansible.com/t/execute-ddl-scripts-on-gcp-cloud-sql-instance-via-ansible/8394 "2025-04-25T20:57:23Z")

</div>

Hi All, I am working on an ansible playbook to execute DDL scripts on a private google cloud SQL instance. Below is the playbook code i am using: name: Check postgreSQL version hosts: localhost gather\_facts: no bec…

---

## [Unable to SSH from Ansible AWX to GCP VM Instance](https://forum.ansible.com/t/unable-to-ssh-from-ansible-awx-to-gcp-vm-instance/41795)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 5\
**Last updated:** [April 22, 2025, 6:08pm UTC](https://forum.ansible.com/t/unable-to-ssh-from-ansible-awx-to-gcp-vm-instance/41795 "2025-04-22T18:08:35Z")

</div>

Unable to SSH from Ansible AWX to GCP VM Instance. Dear community, I am attempting to SSH from my Ansible AWX instance to a VM running on GCP. I have a Service Account created for connecting to the GCP project, but I a…

---

## [Extra Variable For Specific import\_playbook (Isolated)](https://forum.ansible.com/t/extra-variable-for-specific-import-playbook-isolated/41816)

<div class="topic-metadata">

**Author:** [@prakasa1904](https://forum.ansible.com/u/prakasa1904)\
**Replies:** 3\
**Last updated:** [April 20, 2025, 12:30am UTC](https://forum.ansible.com/t/extra-variable-for-specific-import-playbook-isolated/41816 "2025-04-20T00:30:46Z")

</div>

Sorry if I don’t follow the community guidelines properly :folded\_hands: Im new in Ansible and my english is not good, I want to know if there is any way for provide isolated extra variables (--extra-vars) from CLI when…

---

## [AWX Dynamic Inventory Error: "Invalid group name format" with tags (Source Variables)](https://forum.ansible.com/t/awx-dynamic-inventory-error-invalid-group-name-format-with-tags-source-variables/41691)

<div class="topic-metadata">

**Author:** [@mohsinali](https://forum.ansible.com/u/mohsinali)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 1:14pm UTC](https://forum.ansible.com/t/awx-dynamic-inventory-error-invalid-group-name-format-with-tags-source-variables/41691 "2025-04-16T13:14:16Z")

</div>

\` Hi Ansible community, I’m having trouble with dynamic inventory in AWX. I’m trying to create Ansible inventory groups based on instance tags. I’m configuring the inventory plugin using Source Variables in AWX. My in…

---

## [Error in module "No start of json char found" & "KeyError: 'access\_token'"](https://forum.ansible.com/t/error-in-module-no-start-of-json-char-found-keyerror-access-token/41369)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 9:57am UTC](https://forum.ansible.com/t/error-in-module-no-start-of-json-char-found-keyerror-access-token/41369 "2025-03-27T09:57:24Z")

</div>

I am using the module google.cloud.gcp\_dns\_resource\_record\_set (from the collection version 1.5.1) to create a DNS record in the task below. - name: Create DNS record google.cloud.gcp\_dns\_resource\_record\_set: name…

---

## [Ansible setup for Google Cloud](https://forum.ansible.com/t/ansible-setup-for-google-cloud/41364)

<div class="topic-metadata">

**Author:** [@raj\_krish](https://forum.ansible.com/u/raj_krish)\
**Replies:** 0\
**Last updated:** [March 26, 2025, 9:47pm UTC](https://forum.ansible.com/t/ansible-setup-for-google-cloud/41364 "2025-03-26T21:47:32Z")

</div>

Hi All, I am planning to set up a Virtual machine on google cloud. As part of IAC I am planning to use Terraform and for Config management I am planning to use Ansible. I am not sure as how can i integrate the ansible o…

---

## [Installing collections from on-premise Galaxy NG - Development](https://forum.ansible.com/t/installing-collections-from-on-premise-galaxy-ng-development/40826)

<div class="topic-metadata">

**Author:** [@Marketa\_Muzikova](https://forum.ansible.com/u/Marketa_Muzikova)\
**Replies:** 0\
**Last updated:** [March 6, 2025, 3:24pm UTC](https://forum.ansible.com/t/installing-collections-from-on-premise-galaxy-ng-development/40826 "2025-03-06T15:24:52Z")

</div>

Hi, tl;dr - What variable to change in a config file for Galaxy NG to be able to download collections? Long read: I installed this: Development - Galaxy NG which is now running on my Debian GCP machine. On my machine…

---

## [Bug in gcp\_compute\_instance? Deleting vm labels where turning or and off](https://forum.ansible.com/t/bug-in-gcp-compute-instance-deleting-vm-labels-where-turning-or-and-off/3873)

<div class="topic-metadata">

**Author:** [@valkiriaaquatica](https://forum.ansible.com/u/valkiriaaquatica)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 5:58am UTC](https://forum.ansible.com/t/bug-in-gcp-compute-instance-deleting-vm-labels-where-turning-or-and-off/3873 "2025-02-03T05:58:31Z")

</div>

Hi, During a test i noticed that if I power on or power off a machine using the module above, the labels of the machine are removed (No other script or interaction is being used, just this task). Playbook example straig…

---

## [Ansible.utils.cli\_parse fails when command issues warning](https://forum.ansible.com/t/ansible-utils-cli-parse-fails-when-command-issues-warning/39939)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 8:09pm UTC](https://forum.ansible.com/t/ansible-utils-cli-parse-fails-when-command-issues-warning/39939 "2025-01-31T20:09:12Z")

</div>

The following task fails with the message WARNING: This command is using service account impersonation.. Even though the command runs with error. I suppose I could add ignore\_errors to the task, but I would like the task…

---

## [Community version of google.cloud](https://forum.ansible.com/t/community-version-of-google-cloud/9684)

<div class="topic-metadata">

**Author:** [@ericsysmin](https://forum.ansible.com/u/ericsysmin)\
**Replies:** 14\
**Last updated:** [October 9, 2024, 11:35pm UTC](https://forum.ansible.com/t/community-version-of-google-cloud/9684 "2024-10-09T23:35:24Z")

</div>

With the lack of approval and maintenance on google.cloud has there been a desire to make a new community.google\_cloud collection? There are tons of PR’s to that original repo to fix issues but the original maintainers a…

---

## [Unwanted ansible-tmp in command](https://forum.ansible.com/t/unwanted-ansible-tmp-in-command/39607)

<div class="topic-metadata">

**Author:** [@jvzantvoort](https://forum.ansible.com/u/jvzantvoort)\
**Replies:** 5\
**Last updated:** [January 16, 2025, 8:17pm UTC](https://forum.ansible.com/t/unwanted-ansible-tmp-in-command/39607 "2025-01-16T20:17:16Z")

</div>

Unwanted ansible-tmp in command I’m currently working on getting ansible to work with gcp in the scenario that direct ssh is not possible (which it is in my case). I’m using code provided in How to tell Ansible to use G…

---

## [How to Add external IP to an existing GCP VM](https://forum.ansible.com/t/how-to-add-external-ip-to-an-existing-gcp-vm/3099)

<div class="topic-metadata">

**Author:** [@akshay2rathod](https://forum.ansible.com/u/akshay2rathod)\
**Replies:** 1\
**Last updated:** [December 29, 2024, 7:01pm UTC](https://forum.ansible.com/t/how-to-add-external-ip-to-an-existing-gcp-vm/3099 "2024-12-29T19:01:14Z")

</div>

\*\*I want to add an external IP to the existing VM in GCP \*\*. I have a GCP VM with epharmal IP I want to attach a reserved external IP to the instance I am using google.cloud collection when I run a playbook with the d…

---

## [Authentication to GCP with Ansible using federated credentials without gcloud CLI](https://forum.ansible.com/t/authentication-to-gcp-with-ansible-using-federated-credentials-without-gcloud-cli/39036)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 7:58am UTC](https://forum.ansible.com/t/authentication-to-gcp-with-ansible-using-federated-credentials-without-gcloud-cli/39036 "2024-12-11T07:58:42Z")

</div>

I have created a Kubernetes pod manifest in a cluster which I have integrated with GCP using Workload Identity Federation following this procedure Configure Workload Identity Federation with Kubernetes | IAM Documentat…

---

## [Ansible playbook for updated file listing](https://forum.ansible.com/t/ansible-playbook-for-updated-file-listing/11072)

<div class="topic-metadata">

**Author:** [@Chandra\_Mukherjee](https://forum.ansible.com/u/Chandra_Mukherjee)\
**Replies:** 12\
**Last updated:** [December 2, 2024, 6:53pm UTC](https://forum.ansible.com/t/ansible-playbook-for-updated-file-listing/11072 "2024-12-02T18:53:06Z")

</div>

I am trying to develop an ansible module which would traverse subfolders under a main folder and list all .SQL files inside the sub-folders which were modified in the last 30 minutes. Below is my code: name: Install SQ…

---

## [AWX GCP Authentication issue](https://forum.ansible.com/t/awx-gcp-authentication-issue/11183)

<div class="topic-metadata">

**Author:** [@Kuldeep](https://forum.ansible.com/u/Kuldeep)\
**Replies:** 0\
**Last updated:** [November 27, 2024, 8:47am UTC](https://forum.ansible.com/t/awx-gcp-authentication-issue/11183 "2024-11-27T08:47:46Z")

</div>

H i Team, I have installed the AWX tower and am able to access it. I created the dockerfile with all the prerequisites and created the custom image and pushed to the artifact register. and setup the execution environme…

---

## [AWX, Workload Identity Federation & GCP](https://forum.ansible.com/t/awx-workload-identity-federation-gcp/10799)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 4\
**Last updated:** [November 19, 2024, 7:43am UTC](https://forum.ansible.com/t/awx-workload-identity-federation-gcp/10799 "2024-11-19T07:43:10Z")

</div>

I’m looking for a solution to enable AWX to authenticate against GCP keylessly. I’ve seen implementations of such using GitHub Actions and Jenkins which use Workload Identity Federation. To the best of my understanding, …

---

## [AWX - gcp source inventory how to exclude windows hosts](https://forum.ansible.com/t/awx-gcp-source-inventory-how-to-exclude-windows-hosts/10616)

<div class="topic-metadata">

**Author:** [@Juan\_Perdomo](https://forum.ansible.com/u/Juan_Perdomo)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 5:04pm UTC](https://forum.ansible.com/t/awx-gcp-source-inventory-how-to-exclude-windows-hosts/10616 "2024-11-04T17:04:57Z")

</div>

Hello! I was wondering if perhaps someone could help me with more insight on dynamic inventories/smart inventories. Currently I have a inventory with multiple sources all using gcp source dynamic inventory. Had to do mu…

---

## [Issue deploying playbook through GCP IAP behind a bastion host using ssh config and ProxyCommand](https://forum.ansible.com/t/issue-deploying-playbook-through-gcp-iap-behind-a-bastion-host-using-ssh-config-and-proxycommand/10402)

<div class="topic-metadata">

**Author:** [@philippegoarthurai](https://forum.ansible.com/u/philippegoarthurai)\
**Replies:** 5\
**Last updated:** [October 28, 2024, 9:44pm UTC](https://forum.ansible.com/t/issue-deploying-playbook-through-gcp-iap-behind-a-bastion-host-using-ssh-config-and-proxycommand/10402 "2024-10-28T21:44:38Z")

</div>

TL;DR We have an ssh configuration issue that prevents us from deploying using ansible-playbook through GCP Identity Aware Proxy to an internal host behind a bastion host. We have requested help from GCP but we are reach…

---

## [Awx web login failed](https://forum.ansible.com/t/awx-web-login-failed/10354)

<div class="topic-metadata">

**Author:** [@visquis](https://forum.ansible.com/u/visquis)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 9:05am UTC](https://forum.ansible.com/t/awx-web-login-failed/10354 "2024-10-17T09:05:31Z")

</div>

I have just deployed awx-operator v2.19.1 via helm chart GKE with external manged POSTGRES on GCP But I cannot login to the web UI with the following error: awx web login error POST https://my.custom.domain/api/login 4…

---

## [Node or Pod IP based on destination](https://forum.ansible.com/t/node-or-pod-ip-based-on-destination/8665)

<div class="topic-metadata">

**Author:** [@knowosielski-SJSU](https://forum.ansible.com/u/knowosielski-SJSU)\
**Replies:** 3\
**Last updated:** [October 11, 2024, 8:47pm UTC](https://forum.ansible.com/t/node-or-pod-ip-based-on-destination/8665 "2024-10-11T20:47:36Z")

</div>

This one is strange. I’ve just migrated my AWX instance from an on-prem k8s cluster to a GKE cluster in GCP. Everything is working as expected with some minor changes such as the source IP needed to be from the pod subne…

[Next page](https://forum.ansible.com/tag/gcp/80.md?match_all_tags=true&page=1&tags%5B%5D=gcp)
