From: Vytenis Sabaliauskas Date: Thu, 23 Jan 2020 08:58:18 +0000 (+0200) Subject: ceph-facts: Fix for 'running_mon is undefined' error, so that X-Git-Tag: v4.0.12~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4152a1a8628940371e98c473765cfa131b4b78b8;p=ceph-ansible.git 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 (cherry picked from commit ed1eaa1f38022dfea37d8352d81fc0aa6058fa23) --- diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index a8310fb91..152414d02 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -89,7 +89,7 @@ when: - not containerized_deployment | bool - item.rc is defined - - item.rc == 1 + - item.rc == 0 - name: set_fact running_mon - container set_fact: