From f78fe14eae8450258b4a0e8c54eaf31af5a9b057 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 19 Jun 2018 20:37:09 -0500 Subject: [PATCH] roles/zabbix: Respect host_uses_firewalld For machines that do not use firewalld, the *zabbix-agent* role will now skip attempting to open the Zabbix agent port using the `firewalld` module. The `host_uses_firewalld` variable controls this behavior. --- roles/zabbix-agent/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/zabbix-agent/tasks/main.yml b/roles/zabbix-agent/tasks/main.yml index 726bb94..2da6193 100644 --- a/roles/zabbix-agent/tasks/main.yml +++ b/roles/zabbix-agent/tasks/main.yml @@ -34,6 +34,7 @@ state=enabled tags: - firewalld + when: host_uses_firewalld|d(true) notify: save firewalld configuration - name: ensure zabbix agent starts at boot