this is not a single variable, but 3, this for example checks the whole tree of variables down:
when: ansible_eth0 is defined and 'ipv4' in ansible_eth0 and 'address' in ansible_eth0.ipv4 as you see this can fail at 3 diff levels. -- 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 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/CAJ5XC8%3D_9uAiMfPhUd2-ffWYNn%3DTXKnpn2pOWqwPXeM5Y55Z4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.