[icinga-checkins] icinga.org: icinga2-ansible/fix/firewalld-handler: Handler for firewalld decoupled

git at icinga.org git at icinga.org
Sun Jun 8 21:48:54 CEST 2014


Module: icinga2-ansible
Branch: fix/firewalld-handler
Commit: a8d991532127fd402d7a9499c75b2d86381900fb
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=a8d991532127fd402d7a9499c75b2d86381900fb

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Sun Jun  8 21:48:36 2014 +0200

Handler for firewalld decoupled

---

 handlers/firewalld.yml |    7 +++++++
 handlers/main.yml      |    6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/handlers/firewalld.yml b/handlers/firewalld.yml
new file mode 100644
index 0000000..0e58841
--- /dev/null
+++ b/handlers/firewalld.yml
@@ -0,0 +1,7 @@
+---
+# handlers file for icinga2-ansible
+
+- name: restart firewalld
+  service: name=firewalld
+           state=restarted
+           enabled=yes
diff --git a/handlers/main.yml b/handlers/main.yml
index 1551a35..4df7a98 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -16,7 +16,5 @@
            state=restarted 
            enabled=yes
 
-- name: restart firewalld
-  service: name=firewalld
-           state=restarted 
-           enabled=yes
+- include: firewalld.yml
+  when: ansible_os_family == 'RedHat' and ansible_distribution == 'Fedora'



More information about the icinga-checkins mailing list