From 220d983f054abf61c2cfb58628fd5f9bb545cbf0 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 20 Feb 2016 15:53:22 +0100 Subject: [PATCH] Making epoptes start idempotent. --- roles/docenti/tasks/epoptes.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/docenti/tasks/epoptes.yml b/roles/docenti/tasks/epoptes.yml index 55ed9b3..6d449bc 100644 --- a/roles/docenti/tasks/epoptes.yml +++ b/roles/docenti/tasks/epoptes.yml @@ -21,5 +21,10 @@ group: root mode: 0644 +- name: Verify epoptes status + shell: /sbin/status epoptes + register: epoptes_status + - name: Starting epoptes from upstart shell: /sbin/start epoptes + when: epoptes_status.stdout.find("start/running") == -1