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

Variables not visible with new ansible(s) #29

Open
porn opened this issue Aug 23, 2017 · 4 comments
Open

Variables not visible with new ansible(s) #29

porn opened this issue Aug 23, 2017 · 4 comments
Labels

Comments

@porn
Copy link

porn commented Aug 23, 2017

Hey there,

we recently updated ansible from 2.1.0.0 to 2.3.2.0 and now the group variables are not displayed in the graphs. Generating the graphs with:

ansible-inventory-grapher -i inventories/local.ini 'all' > local.dot
dot -Tpng local.dot > local.png

Using grapher ver. 2.4.0, here's what I get for following ansible versions:

2.1.0.0:
local-2 1 0 0

2.2.0.0:
local-2 2 0 0

2.3.2.0:
local

Can anybody reproduce this, or am I the only one?

@porn porn changed the title Update for new ansible(s) Variables not visible with new ansible(s) Aug 23, 2017
@willthames
Copy link
Owner

Can you add the result of ansible-inventory-grapher --version.

I don't have a copy of your inventory to reproduce, but if I use the repo at https://github.com/willthames/ansible-ec2-example I get the group variables just fine with ansible 2.3.2.

@porn
Copy link
Author

porn commented Aug 29, 2017

As mentioned above, I use grapher 2.4.0:

$ ansible-inventory-grapher --version
ansible-inventory-grapher 2.4.0

Here's the minimal case to reproduce the issue:
https://github.com/porn/grapher-test

To test:

$ make venv
$ . ./venv/bin/activate
$ make test

now you should be able to compare the images from different versions. Only the localhost-2.1.png contains group variables.

@Twista
Copy link

Twista commented Sep 11, 2017

Hello there, have same issue. With ansible 2.3.0.0 and 2.2.0.0 variables are not shown :/

@willthames willthames added the bug label Sep 11, 2017
@willthames
Copy link
Owner

Ok, this works as I expect it if I move group_vars under inventories which explains why I was struggling to reproduce.

Not sure how much time I'll have to dig into this properly, but I'll take a look when I find some time.

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

No branches or pull requests

3 participants