My firewall-oriented roles need to use different network info when executed on different machines, depending on which interface is the external one and which is the internal one. Thus I need to be able to set e.g.:
ext_if: eth0 int_if: eth1 and from here, ip network information to be taken from ansible_eth0 for the external interface and from ansible_eth1 for the internal. And if on another machine they are different, e.g. eth1 is the external and eth2 is the internal, I would only need to change the above to ext_if: eth1 int_if: eth2 In shell syntax that would be like ansible_${ext_if} / ansible_${int_if} ... How would you guys do that with ansible? Any input much appreciated, thanks in advance! -Yassen -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2730ab78-8ac1-4f0e-acf4-87bf32413dcc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.