Skip to content
Snippets Groups Projects
Verified Commit 784c581e authored by Chris Croome's avatar Chris Croome
Browse files

fix ufw role import

parent 03cc165e
No related branches found
No related tags found
No related merge requests found
Pipeline #26942 passed
......@@ -65,7 +65,7 @@
ansible.builtin.include_tasks: iptables.yml
when:
- icinga_port_state != "open"
- ufw not 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
ansible.builtin.include_role:
......@@ -74,6 +74,9 @@
ufw_allow_rules:
- app: Icinga
from_ip: "{{ lookup('community.general.dig', icinga_master_node) }}"
when:
- icinga_port_state != "open"
- ( "ufw" in ansible_local.dpkg.installed )
tags:
- icinga
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment