ansible-inventory-grapher
ansible-inventory-grapher copied to clipboard
Variables not visible with new ansible(s)
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:
2.2.0.0:
2.3.2.0:
Can anybody reproduce this, or am I the only one?
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.
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.
Hello there, have same issue. With ansible 2.3.0.0
and 2.2.0.0
variables are not shown :/
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.