Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to write a GCP dynamic inventory with the project labels as filter #632

Open
deepak-pradeep opened this issue May 16, 2024 · 0 comments

Comments

@deepak-pradeep
Copy link

SUMMARY

have 3 GCP folders,

folder_a folder_b folder_c

need to write a dynamic inventory file to get the VMs in the list of folders.

I have 10 projects in each folder but I want to filter the project with the project label "severity=critical" . I need to only get the list of VMs from the projects having that label.

I tried ,

--- plugin: google.cloud.google_compute

but there is no option to filter the project labels. only VM level labels can be filtered

But there is no document is available for it.

ISSUE TYPE
  • Documentation Report
COMPONENT NAME
ANSIBLE VERSION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant