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: [email protected]
> 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/[email protected]/?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?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0495dcc0-b43b-4598-bf0c-4dbc483553f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to