From a837fada1024e7db241a423ec704adb6cb620cbb Mon Sep 17 00:00:00 2001
From: Chris Croome <chris@webarchitects.co.uk>
Date: Sat, 28 Sep 2024 23:13:38 +0100
Subject: [PATCH] only inc iptables conf with iptables-persistent

---
 tasks/firewall.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tasks/firewall.yml b/tasks/firewall.yml
index f93af33..06519bb 100644
--- a/tasks/firewall.yml
+++ b/tasks/firewall.yml
@@ -74,6 +74,7 @@
       ansible.builtin.include_tasks: iptables.yml
       when:
         - icinga_port_state != "open"
+        - ( "iptables-persistent" in ansible_local.dpkg.installed )
         - ( "ufw" not in ansible_local.dpkg.installed )
 
     - name: Include the UFW role when port 5665 is not open on the agent mode
-- 
GitLab