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

Ansible plugin gcp_compute skipping #650

Open
Hraesvelg opened this issue Sep 28, 2024 · 0 comments
Open

Ansible plugin gcp_compute skipping #650

Hraesvelg opened this issue Sep 28, 2024 · 0 comments

Comments

@Hraesvelg
Copy link

Summary

When i try to use gcp_compute plugin, ansible skip always the plugin. No specific error... just it skip the plugin and then it can"t load gcp_compute.yml config and finaly my inventory is empty

ISSUE TYPE

  • Bug Report

COMPONENT NAME

gcp_compute

ANSIBLE VERSION

$ ansible --version
ansible [core 2.17.3]

OS / ENVIRONMENT

Ubuntu

STEPS TO REPRODUCE
[defaults]
host_key_checking = False
inventory = gcp_compute.yml
interpreter_python = auto_silent

[inventory]
enable_plugins = host_list, script, auto, yaml, ini, toml, google.cloud.gcp_compute
plugin: google.cloud.gcp_compute
zones: # populate inventory with instances in these regions
  - us-central1-a
projects:
  - my-project
service_account_file: ./service_account.json
auth_kind: serviceaccount
keyed_groups:
  # Create groups from GCE labels
  - key: labels
    prefix: label
  - key: zone
    prefix: zone
hostnames:
  - my_hostname
compose:
  ansible_host: networkInterfaces[0].accessConfigs[0].natIP

EXPECTED RESULTS

He should found all inventory

ACTUAL RESULTS
[WARNING]: Failed to load inventory plugin, skipping google.cloud.gcp_compute
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