Hello,
I need to programmatically access variables defined with a role ( via
myrole/vars/main.yaml)
I tried using the trick described in the Ansible FAQ - {{ hostvars[
inventory_hostname ][ myvar ] }} but it appears variables defined within
the role are not included in this hostvars namespace.
Would love to figure out a way to access my role variables programmatically.
Thanks in advance,
--Ed
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/ae34c42f-315c-4852-88ad-04ba57e41e99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.