{% if ansible_eth0 is defined and
        ansible_eth0["dev"] in proxy_internal_interface %}
{% set memcached_ip = ansible_eth0["ipv4"]["address"] %}
{% endif %}
{% if ansible_eth1 is defined and
        ansible_eth1["dev"] in proxy_internal_interface %}
{% set memcached_ip = ansible_eth1["ipv4"]["address"] %}
{% endif %}
{% if ansible_eth2 is defined and
        ansible_eth2["dev"] in proxy_internal_interface %}
{% set memcached_ip = ansible_eth2["ipv4"]["address"] %}
{% endif %}
{% if ansible_eth3 is defined and
        ansible_eth3["dev"] in proxy_internal_interface %}
{% set memcached_ip = ansible_eth3["ipv4"]["address"] %}
{% endif %}

fatal: [192.168.5.101] => {'msg': "'in <string>' requires string as left 
operand, not Undefined", 'failed': True}
fatal: [192.168.5.101] => {'msg': "'in <string>' requires string as left 
operand, not Undefined", 'failed': True}

Why is that? Why does it get to *ansible_eth3["dev"] in 
proxy_internal_interface* if *ansible_eth3 is defined* is already false?

{% if ansible_eth3 is defined %}
{% if ansible_eth3["dev"] in proxy_internal_interface %}
{% set memcached_ip = ansible_eth3["ipv4"]["address"] %}
{% endif %}
{% endif %}

This one also fails.

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/3d56nVlUQC4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to