chiark / gitweb /
roles/common/handlers/main.yml: Move `make' handlers to the top.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 13 Jul 2015 09:45:58 +0000 (10:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 13 Jul 2015 09:45:58 +0000 (10:45 +0100)
Handlers are always run in the order in which they're defined, so it
makes sense to put the rules which rebuild configuration files above the
rules which restart services.

roles/common/handlers/main.yml

index bf0b9332d3a926acd2f940fd9e787ec0b4a2c822..9f6624d60dc431e2c56775f34bcbd7d73d02feee 100644 (file)
@@ -4,6 +4,12 @@
 
 ---
 
+###--------------------------------------------------------------------------
+### Rebuliding remote configuration files.
+
+- name: make in /root/.ssh/
+  command: make chdir=/root/.ssh/
+
 ###--------------------------------------------------------------------------
 ### Restarting services in obvious ways.
 
 - name: restart ssh
   service: name=ssh state=restarted
 
-###--------------------------------------------------------------------------
-### Rebuliding remote configuration files.
-
-- name: make in /root/.ssh/
-  command: make chdir=/root/.ssh/
-
 ###----- That's all, folks --------------------------------------------------