From 69f14daa94c9d54cc759592852f1b88385f8acc4 Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <adellam@isti.cnr.it>
Date: Tue, 16 Jan 2018 17:03:54 +0100
Subject: [PATCH] library/roles/iptables/templates/iptables-rules.v4.j2: Fix a
 conditional.

---
 iptables/templates/iptables-rules.v4.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2
index 37b51ba..b55e885 100644
--- a/iptables/templates/iptables-rules.v4.j2
+++ b/iptables/templates/iptables-rules.v4.j2
@@ -68,7 +68,7 @@
 {% endif %}
 {% if psql_firewall_enabled %}
 {% if psql_db_port is defined %}
-{% if psql_listen_on_ext_int %}
+{% if psql_listen_on_ext_int is defined and psql_listen_on_ext_int %}
 {% if psql_db_data is defined %}
 # postgresql clients
 {% for db in psql_db_data %}