{% if ansible_local is defined and ansible_local.blacklist is defined %} {% for line in ansible_local.blacklist.ip|default([]) %} {{line}} {% endfor %} {% endif %} {% for line in proxy_blacklist.ip|default([]) %} {{line}} {% endfor %}