roles/common/: Run `make' in `/root/.ssh' when things change.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 9 Jul 2015 09:05:23 +0000 (10:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 9 Jul 2015 09:05:23 +0000 (10:05 +0100)
roles/common/handlers/main.yml
roles/common/tasks/main.yml

index 7e82ba4..1b35e24 100644 (file)
 - 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 --------------------------------------------------
index af14057..75ec1ff 100644 (file)
 - name: install main keys for root SSH access
   tags: [ssh, ssh-root]
   template: src=ssh-root-authkeys dest=/root/.ssh/authkeys.base
+  notify: make in /root/.ssh
 
 - name: install keys for root SSH access
   tags: [ssh, ssh-root]
   copy: src=ssh-root/{{ item }} dest=/root/.ssh
+  notify: make in /root/.ssh
   with_items:
     - Makefile
     - config.m4