ansible-inventory-grapher icon indicating copy to clipboard operation
ansible-inventory-grapher copied to clipboard

Variables not visible with new ansible(s)

Open porn opened this issue 6 years ago • 4 comments

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 avatar Aug 23 '17 07:08 porn

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.

willthames avatar Aug 25 '17 15:08 willthames

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.

porn avatar Aug 29 '17 11:08 porn

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

Twista avatar Sep 11 '17 10:09 Twista

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.

willthames avatar Sep 11 '17 23:09 willthames