From 3cb84a6087608efc9571e5a3179c3302d81ef701 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 13 Sep 2015 20:50:04 +0200 Subject: [PATCH] Better management on reboot by epoptes-client installation. --- roles/domain/tasks/epoptes.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/domain/tasks/epoptes.yml b/roles/domain/tasks/epoptes.yml index f180f49..36eb783 100644 --- a/roles/domain/tasks/epoptes.yml +++ b/roles/domain/tasks/epoptes.yml @@ -32,6 +32,11 @@ shell: "test -f /etc/epoptes/server.crt || /usr/sbin/epoptes-client -c" sudo: yes when: role == 'client' and epo_srv_name|changed + register: crt_epo_srv + +- name: Riavvio il client alla ricezione di un certificato. + shell: /bin/true + when: role == 'client' and crt_epo_srv|changed notify: - reboot