something like:
with _items: otherservers
set_fact:
otherips: "{{otherips}}, " + hostvars[item]['ansible_' +
rhel7_interface in hostvars[host]|ternary(['an['ansible_' +
rhel7_interface, 'ansible_' + default_interface) ....
or I would try using the jinja2 map filter. its going to be ugly in any case.
--
Brian Coca
--
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/CAJ5XC8mRctXzSmsAc4XEXSpGse52kmPDhpbnwbHi1eTh7jB0KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.