[PATCH] Move varnish, keepalived and infinoted handlers to their role

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Scherer <misc@xxxxxxxxxx>

---
 handlers/restart_services.yml      | 9 ---------
 roles/infinote/handlers/main.yml   | 2 ++
 roles/keepalived/handlers/main.yml | 2 ++
 3 files changed, 4 insertions(+), 9 deletions(-)
 create mode 100644 roles/infinote/handlers/main.yml
 create mode 100644 roles/keepalived/handlers/main.yml

diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml
index 940e114..4cfb41e 100644
--- a/handlers/restart_services.yml
+++ b/handlers/restart_services.yml
@@ -167,12 +167,6 @@
 - name: restart haproxy
   service: name=haproxy state=restarted
 
-- name: restart varnish
-  service: name=varnish state=restarted
-
-- name: restart keepalived
-  service: name=keepalived state=restarted
-
 - name: restart mariadb
   service: name=mariadb state=restarted
 
@@ -196,9 +190,6 @@
 - name: restart autocloud
   service: name=autocloud state=restarted
 
-- name: restart infinoted
-  service: name=infinoted state=restarted
-
 - name: restart mirrorlist-server
   service: name=mirrorlist-server state=restarted
 
diff --git a/roles/infinote/handlers/main.yml b/roles/infinote/handlers/main.yml
new file mode 100644
index 0000000..55133ec
--- /dev/null
+++ b/roles/infinote/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: restart infinoted
+  service: name=infinoted state=restarted
diff --git a/roles/keepalived/handlers/main.yml b/roles/keepalived/handlers/main.yml
new file mode 100644
index 0000000..3840e64
--- /dev/null
+++ b/roles/keepalived/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: restart keepalived
+  service: name=keepalived state=restarted
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux