From ed1eaa1f38022dfea37d8352d81fc0aa6058fa23 Mon Sep 17 00:00:00 2001 From: Vytenis Sabaliauskas Date: Thu, 23 Jan 2020 10:58:18 +0200 Subject: [PATCH] ceph-facts: Fix for 'running_mon is undefined' error, so that fact 'running_mon' is set once 'grep' successfully exits with 'rc == 0' Signed-off-by: Vytenis Sabaliauskas --- roles/ceph-facts/tasks/facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 2115fe501..d5a5aeae1 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -83,7 +83,7 @@ when: - not containerized_deployment | bool - item.rc is defined - - item.rc == 1 + - item.rc == 0 - name: set_fact running_mon - container set_fact: