hallo all,
i have defined following variables in my playbook:
-
vars:
ip:
fw1: 0.0.0.1
fw2: 0.0.0.2
-
temple.j2 contains :
{% for addr in ip %} {{ addr }} {% endfor %}
# this returns the name of the fields : fw1 fw2
what should i edit in the for loop inoder to return the values of the
fields ? namely 0.0.0.1 0.0.0.2
*note : using an arrray intead of a dictionary wouldn't help me because i
need the ip-value of a specific firewall in another part in the playbook.*
--
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/4878af8e-cbd5-4c16-b569-e14a57b8bcc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.