There is some lack of documentation when it comes on using the gcp_compute plugin a different auth_kind other thatn serviceaccount.
My yml is this:
plugin: gcp_compute
projects:
- my_project
service_account_email: my_mail@gmail.com
filters: null
auth_kind: machineaccount
When I run it with ansible-inventory --list -i foo.gcp.yml
I get the following error:
Failed to parse /Users/user/Workspace/cluster_create/inventory/foo.gcp.yml with auto plugin:
HTTPConnectionPool(host=‘metadata.google.internal’, port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-
accounts/my_mail@gmail.com/?recursive=true (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x111cc1090>: Failed to
establish a new connection: [Errno 8] nodename nor servname provided, or not known’,))
Am I missing something here?