From: Mark Wooding Date: Mon, 13 Jul 2015 09:45:58 +0000 (+0100) Subject: roles/common/handlers/main.yml: Move `make' handlers to the top. X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-ansible/commitdiff_plain/d0e668e007325339cb3e642a83c543e5a2f7cda5 roles/common/handlers/main.yml: Move `make' handlers to the top. 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. --- diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index bf0b933..9f6624d 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -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 @@ -13,10 +19,4 @@ - 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 --------------------------------------------------