dellis23/ansible-toolkit

ark-show-vars doesn't work as expected

Open

#19 aberto em 26 de set. de 2015

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)Python (15 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (157 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Do you require variables/facts to be in cache or have variables defined only in the inventory ini files?

When I have inventory files in it's own directory and group_vars directory with it's own files, atk-show-vars will only show me the heading lines with define group names.

What am I missing or doing wrong?

Below is output showing first the involved files, the involved files contents (host the same variable defined more than once) and then two sample outputs from ark-show-vars:

(ansible)christopherstewart ~/Temporary/ansible-toolkit-test ⚡ find . -type file ./development/stewness ./group_vars/all/proof ./group_vars/stewness_proof_all_dev ./group_vars/stewness_proof_all_nonprod ./group_vars/stewness_proof_web_dev ./host_vars/web003.dev.dc01 (ansible)christopherstewart ~/Temporary/ansible-toolkit-test ⚡ find . -type file | xargs -t -n1 cat cat ./development/stewness [stewness_proof_web_dev] web001.dev.dc01 web002.dev.dc01 web003.dev.dc01

[stewness_proof_app_dev] app001.dev.dc01 app002.dev.dc01 app003.dev.dc01

[stewness_proof_web_qa] web001.qa.dc01 web002.qa.dc01 web003.qa.dc01

[stewness_proof_app_qa] app001.qa.dc01 app002.qa.dc01 app003.qa.dc01

[stewness_proof_all_dev:children] stewness_proof_web_dev stewness_proof_app_dev

[stewness_proof_all_qa:children] stewness_proof_web_qa stewness_proof_app_qa

[stewness_proof_all_nonprod:children] stewness_proof_all_dev stewness_proof_all_qa cat ./group_vars/all/proof the_stewness: is all good cat ./group_vars/stewness_proof_all_dev the_stewness: 3 cat ./group_vars/stewness_proof_all_nonprod the_stewness: 101 cat ./group_vars/stewness_proof_web_dev the_stewness: 1 cat ./host_vars/web003.dev.dc01 the_stewnewss: about 3 (ansible)christopherstewart ~/Temporary/ansible-toolkit-test ⚡ atk-show-vars --inventory development app003.qa.dc01 Default Variables Group Variables (all) Group Variables (stewness_proof_all_nonprod) Group Variables (stewness_proof_all_qa) Group Variables (stewness_proof_app_qa) Host Variables Setup Cache Play Variables Play File Variables Role Variables Module Variables Variables Cache Role Parameters Extra Variables (ansible)christopherstewart ~/Temporary/ansible-toolkit-test ⚡ atk-show-vars --inventory development web003.qa.dc01 Default Variables Group Variables (all) Group Variables (stewness_proof_all_nonprod) Group Variables (stewness_proof_all_qa) Group Variables (stewness_proof_web_qa) Host Variables Setup Cache Play Variables Play File Variables Role Variables Module Variables Variables Cache Role Parameters Extra Variables

Guia do colaborador