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 bf0b933..9f6624d 100644 (file)
@@ -5,6 +5,12 @@
 ---
 
 ###--------------------------------------------------------------------------
+### Rebuliding remote configuration files.
+
+- name: make in /root/.ssh/
+  command: make chdir=/root/.ssh/
+
+###--------------------------------------------------------------------------
 ### Restarting services in obvious ways.
 
 - name: restart ntpd
 - 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 --------------------------------------------------