From: Mark Wooding Date: Thu, 9 Jul 2015 09:05:23 +0000 (+0100) Subject: roles/common/: Run `make' in `/root/.ssh' when things change. X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-ansible/commitdiff_plain/5137085234783e2eeaa327b492891e8f238e71e2 roles/common/: Run `make' in `/root/.ssh' when things change. --- diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 7e82ba4..1b35e24 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -13,4 +13,10 @@ - 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 -------------------------------------------------- diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index af14057..75ec1ff 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -46,10 +46,12 @@ - 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