From 5137085234783e2eeaa327b492891e8f238e71e2 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 9 Jul 2015 10:05:23 +0100 Subject: [PATCH] roles/common/: Run `make' in `/root/.ssh' when things change. --- roles/common/handlers/main.yml | 6 ++++++ roles/common/tasks/main.yml | 2 ++ 2 files changed, 8 insertions(+) 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 -- 2.11.0