Hi All,

This might be more of a Jinja question, but I couldn't find an answer to
this.

Say I have an inventory value that stores the main NIC name and I want to
lookup the IP address for it from a fact. How can this be done in the one
line? Non working example:

debug: msg="ip address is {{ ansible_{{ main_nic }}.ipv4.address }}"

GS

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to