Skip to content

glcoud based authentication for ansible #669

@renich

Description

@renich
SUMMARY

this collection should work using one's environment when one has authenticated using gcloud, as the following documentation states (for terraform):

https://cloud.google.com/docs/terraform/authentication#local_dev_environment

This, actually, works with Terraform/OpenTofu.

It doesn't work with Ansible.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

google_service_account or google_auth

ADDITIONAL INFORMATION
plugin: google.cloud.gcp_compute
projects: xpc-25
hostnames:
  - name
ansible -i hosts.gcp.yaml -m ansible.builtin.ping all

That should just work if gcloud auth application-default login was done beforehand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions