I guys, ansible newbie here…
I’ve read how to refere variables inside vars.yml file here:
http://www.ansibleworks.com/docs/YAMLSyntax.html
foo: 1
foo_value: {{ foo }}
then under my playbook.yml load vars.yml with vars_file: directive and call them with {{ foo_value }}.
This is working fine but, what about this:
foo:
bar: hello
baz: {{ bar }}
and call it under the play with {{ foo.baz }}.
Is there a way to do this?
I’ve tried this 4 ways but wihout success… http://pastie.org/8514924
help
cheers,
Frank