plugin: gcp_compute
projects:
  - PROJECT
service_account_email: ACCOUNT
filters:
auth_kind: machineaccount


I had some success with the following. Hopefully it will help someone since 
the Ansible documentation has no examples.

On Thursday, 27 September 2018 17:06:04 UTC+1, Mpampis Mpigkonias wrote:
>
> 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] <javascript:>
>> 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/7fe38b13-b056-4095-a020-3019acb5d014%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to