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

How do I use group_vars with gcp_compute dynamic inventory? #47574

Closed
walterdolce opened this issue Oct 24, 2018 · 3 comments
Closed

How do I use group_vars with gcp_compute dynamic inventory? #47574

walterdolce opened this issue Oct 24, 2018 · 3 comments
Labels
affects_2.8 This issue/PR affects Ansible v2.8 docs This issue/PR relates to or includes documentation. support:community This issue/PR relates to code supported by the Ansible community.

Comments

@walterdolce
Copy link

SUMMARY

Relates to #47573

The following doesn't work:

# foo.gcp.yml
---
plugin: gcp_compute
projects:
  - theproject
filters:
- name = theinstancename
scopes:
- https://www.googleapis.com/auth/compute
service_account_file: path/to/json
auth_kind: serviceaccount
all:
  children:
    theproject:

Nor does the following:

# foo.gcp.yml
---
plugin: gcp_compute
projects:
  - theproject
filters:
- name = theinstancename
scopes:
- https://www.googleapis.com/auth/compute
service_account_file: path/to/json
auth_kind: serviceaccount
groups:
   theproject:

Dir structure is as follows:

group_vars/
   theproject/
      theproject.yml
      vault
foo.gcp.yml
playbook.yml
roles/
   # ...

ISSUE TYPE
  • Documentation Report
COMPONENT NAME

gcp_compute

ANSIBLE VERSION

The latest at this time of writing

CONFIGURATION

Not relevant

OS / ENVIRONMENT

Not relevant

ADDITIONAL INFORMATION
@ansibot
Copy link
Contributor

ansibot commented Oct 24, 2018

Hi @walterdolce, thank you for submitting this issue!

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Oct 24, 2018

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 docs This issue/PR relates to or includes documentation. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. labels Oct 24, 2018
@walterdolce
Copy link
Author

Being answered in #47573

@mkrizek mkrizek removed needs_triage Needs a first human triage before being processed. labels Oct 25, 2018
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 docs This issue/PR relates to or includes documentation. support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

No branches or pull requests

3 participants