{% for host in groups['all'] %} {% for line in hostvars[host].proxy_blacklist_ips|default([]) %} {{line}} {% endfor %} {% endfor %}