From 330f991a84a72269f210e7e1335e78cd8f3c3b86 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 14 Sep 2015 10:26:02 +0200 Subject: [PATCH] Correcting the tasks for configuring epoptes-client. --- roles/client/tasks/epoptes.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/roles/client/tasks/epoptes.yml b/roles/client/tasks/epoptes.yml index cd7113d..944be3b 100644 --- a/roles/client/tasks/epoptes.yml +++ b/roles/client/tasks/epoptes.yml @@ -13,6 +13,12 @@ when: get_epo_srv_name|changed changed_when: "'none' not in epo_srv_name.stdout" +- name: Cleanup + file: + path: /tmp/epoptes-srv + state: absent + when: get_epo_srv_name|changed + - name: Configuring the client lineinfile: dest: /etc/default/epoptes-client @@ -24,8 +30,7 @@ - name: Checking for an already existent certificate file: path: /etc/epoptes/server.crt - status: file - when: epo_srv_name|changed + state: file register: crt_epo_exists ignore_errors: yes @@ -35,9 +40,3 @@ when: crt_epo_exists|failed notify: - reboot - -- name: Cleanup - file: - path: /tmp/epoptes-srv - state: absent - when: get_epo_srv_name|changed