[PATCH] Move a few handlers to the only role using them

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

 



From: Michael Scherer <misc@xxxxxxxx>

---
 handlers/restart_services.yml          | 15 ---------------
 roles/copr/backend/handlers/main.yml   |  3 +++
 roles/haproxy/handlers/main.yml        |  3 +++
 roles/koji_builder/handlers/main.yml   |  3 +++
 roles/kojipkgs/handlers/main.yml       |  3 +++
 roles/mariadb_server/handlers/main.yml |  3 +++
 6 files changed, 15 insertions(+), 15 deletions(-)
 create mode 100644 roles/haproxy/handlers/main.yml
 create mode 100644 roles/koji_builder/handlers/main.yml
 create mode 100644 roles/kojipkgs/handlers/main.yml
 create mode 100644 roles/mariadb_server/handlers/main.yml

diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml
index a2e9669..75a805b 100644
--- a/handlers/restart_services.yml
+++ b/handlers/restart_services.yml
@@ -45,9 +45,6 @@
 - name: restart jenkins
   action: service name=jenkins state=restarted
 
-- name: restart kojid
-  action: service name=kojid state=restarted
-
 - name: restart koschei-polling
   action: service name=koschei-polling state=restarted
 
@@ -63,9 +60,6 @@
 - name: restart libvirtd
   action: service name=libvirtd state=restarted
 
-- name: restart lighttpd
-  action: service name=lighttpd state=restarted
-
 - name: restart mailman
   action: service name=mailman state=restarted
 
@@ -155,15 +149,6 @@
   ignore_errors: true
   when: ansible_virtualization_role == 'host'
 
-- name: restart haproxy
-  service: name=haproxy state=restarted
-
-- name: restart mariadb
-  service: name=mariadb state=restarted
-
-- name: restart squid
-  service: name=squid state=restarted
-
 - name: "update ca-trust"
   command: /usr/bin/update-ca-trust
 
diff --git a/roles/copr/backend/handlers/main.yml b/roles/copr/backend/handlers/main.yml
index 2994015..afbcf7c 100644
--- a/roles/copr/backend/handlers/main.yml
+++ b/roles/copr/backend/handlers/main.yml
@@ -9,3 +9,6 @@
 
 - name: systemctl daemon-reload
   command: /usr/bin/systemctl daemon-reload
+
+- name: restart lighttpd
+  action: service name=lighttpd state=restarted
diff --git a/roles/haproxy/handlers/main.yml b/roles/haproxy/handlers/main.yml
new file mode 100644
index 0000000..2de15f4
--- /dev/null
+++ b/roles/haproxy/handlers/main.yml
@@ -0,0 +1,3 @@
+---
+- name: restart haproxy
+  service: name=haproxy state=restarted
diff --git a/roles/koji_builder/handlers/main.yml b/roles/koji_builder/handlers/main.yml
new file mode 100644
index 0000000..407cf29
--- /dev/null
+++ b/roles/koji_builder/handlers/main.yml
@@ -0,0 +1,3 @@
+---
+- name: restart kojid
+  action: service name=kojid state=restarted
diff --git a/roles/kojipkgs/handlers/main.yml b/roles/kojipkgs/handlers/main.yml
new file mode 100644
index 0000000..54e5791
--- /dev/null
+++ b/roles/kojipkgs/handlers/main.yml
@@ -0,0 +1,3 @@
+---
+- name: restart squid
+  service: name=squid state=restarted
diff --git a/roles/mariadb_server/handlers/main.yml b/roles/mariadb_server/handlers/main.yml
new file mode 100644
index 0000000..6f737d9
--- /dev/null
+++ b/roles/mariadb_server/handlers/main.yml
@@ -0,0 +1,3 @@
+---
+- name: restart mariadb
+  service: name=mariadb 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