fatal: [test2] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute 'ipv4'", 'failed': True}
This server does indeed have an eth1 interface but said interface does _not_ have an IP address in this particular case.
This "if x is defined" syntax seems to work fine in a "when:" conditional in the playbook, just not in the template itself.
Any thoughts on what I may be doing wrong and how to rectify this error / problem?
Many thanks!
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/82e08499-be63-441c-b3de-d52085a941da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.