[icinga-checkins] icinga.org: icinga2-ansible/master: No need to restart icinga2 after applying configurations: use reload instead

git at icinga.org git at icinga.org
Sat Jun 7 13:16:05 CEST 2014


Module: icinga2-ansible
Branch: master
Commit: 820f309c4a37936e3eb730af0afdd002ddf5a246
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=820f309c4a37936e3eb730af0afdd002ddf5a246

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Fri Jun  6 13:54:23 2014 +0200

No need to restart icinga2 after applying configurations: use reload instead

---

 handlers/handlers.yml          |    3 +++
 tasks/icinga2_add_commands.yml |    2 +-
 tasks/icinga2_add_host.yml     |    2 +-
 tasks/icinga2_add_services.yml |    2 +-
 tasks/icinga2_add_users.yml    |    6 +++---
 5 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/handlers/handlers.yml b/handlers/handlers.yml
index 2200330..41d83a7 100644
--- a/handlers/handlers.yml
+++ b/handlers/handlers.yml
@@ -1,5 +1,8 @@
 - name: restart icinga2
   service: name=icinga2 state=restarted enabled=yes
 
+- name: reload icinga2
+  service: name=icinga2 state=reloaded enabled=yes
+
 - name: restart httpd
   service: name=httpd state=restarted enabled=yes
diff --git a/tasks/icinga2_add_commands.yml b/tasks/icinga2_add_commands.yml
index 9c2597e..a6a5725 100644
--- a/tasks/icinga2_add_commands.yml
+++ b/tasks/icinga2_add_commands.yml
@@ -6,4 +6,4 @@
             mode=0644
   with_items: commands
   notify:
-  - restart icinga2
+  - reload icinga2
diff --git a/tasks/icinga2_add_host.yml b/tasks/icinga2_add_host.yml
index 1566d05..08955ae 100644
--- a/tasks/icinga2_add_host.yml
+++ b/tasks/icinga2_add_host.yml
@@ -6,4 +6,4 @@
             mode=0644
   with_items: groups["{{ hosts }}"]
   notify:
-   - restart icinga2
+   - reload icinga2
diff --git a/tasks/icinga2_add_services.yml b/tasks/icinga2_add_services.yml
index 93d3d8d..1844438 100644
--- a/tasks/icinga2_add_services.yml
+++ b/tasks/icinga2_add_services.yml
@@ -6,4 +6,4 @@
             mode=0644
   with_items: services
   notify:
-  - restart icinga2
+  - reload icinga2
diff --git a/tasks/icinga2_add_users.yml b/tasks/icinga2_add_users.yml
index a8a8d40..eddecb2 100644
--- a/tasks/icinga2_add_users.yml
+++ b/tasks/icinga2_add_users.yml
@@ -6,7 +6,7 @@
             mode=0644
   with_items: users
   notify:
-   - restart icinga2
+   - reload icinga2
 
 - name: Copy HostGroup Definitions (which are tied to users)
   template: src=grouphost_def.j2 
@@ -16,7 +16,7 @@
             mode=0644
   with_items: users
   notify:
-   - restart icinga2
+   - reload icinga2
 
 - name: Copy Notification Definitions (which are tied to users)
   template: src=notification_def.j2 
@@ -26,4 +26,4 @@
             mode=0644
   with_items: users
   notify:
-   - restart icinga2
+   - reload icinga2



More information about the icinga-checkins mailing list