Hi All,
I am having issues setting up the GCE Dynamic Inventory with my AWX instance.
I want to set up the dynamic Inventory so that it uses the machine’s default service account instead of a regular service account.
When I set the Dynamic Inventory source as Google Compute Engine, it just lets me select a GCE credential (GCP service account) It does not let me select the machine credentials:
However, if I use ansible through CLI commands I can use the machine credentials without having to create a new service account with a private key:
ansible-inventory -i test.gcp.yml
where test.gcp.yml has:
projects:
- some-project
auth_kind: machineaccount
How can I achieve the same functionality from AWX? Do I need to leverage custom scripts?
Thanks for the help.