diff options
author | Michael Scherer <misc@zarb.org> | 2016-04-04 22:40:13 +0200 |
---|---|---|
committer | Kevin Fenzi <kevin@scrye.com> | 2016-04-04 20:46:29 +0000 |
commit | 856abe494eb537f056a8b43d951505c22aa2456e (patch) | |
tree | e36302f8ccc58b8f3b9e6be4dc4097cae4b34c0d | |
parent | 0dccd8985818c5fbb87b587c465f7f3d793eb501 (diff) | |
download | ansible-856abe494eb537f056a8b43d951505c22aa2456e.tar.gz ansible-856abe494eb537f056a8b43d951505c22aa2456e.tar.xz ansible-856abe494eb537f056a8b43d951505c22aa2456e.zip |
Move a few handlers to the only role using them
-rw-r--r-- | handlers/restart_services.yml | 15 | ||||
-rw-r--r-- | roles/copr/backend/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/haproxy/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/koji_builder/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/kojipkgs/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/mariadb_server/handlers/main.yml | 3 |
6 files changed, 15 insertions, 15 deletions
diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml index a2e96692f..75a805bfe 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 2994015d1..afbcf7c03 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 000000000..2de15f457 --- /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 000000000..407cf29da --- /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 000000000..54e5791b1 --- /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 000000000..6f737d913 --- /dev/null +++ b/roles/mariadb_server/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: restart mariadb + service: name=mariadb state=restarted |