diff --git a/tasks/firewall.yml b/tasks/firewall.yml index f93af33980dfaa87c87484de8b3df63c8274b042..06519bba6fbc79ba686624ce164e2f00a459e9d5 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