From 9adfb2f5a059f9dc19b3387cf297e728dc547486 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Wed, 31 Jan 2018 23:40:31 +0100 Subject: [PATCH] ipaserver/tasks/uninstall.yml: Fix error for using uninstall on not installed server --- roles/ipaserver/tasks/uninstall.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ipaserver/tasks/uninstall.yml b/roles/ipaserver/tasks/uninstall.yml index eda945d8..373585c5 100644 --- a/roles/ipaserver/tasks/uninstall.yml +++ b/roles/ipaserver/tasks/uninstall.yml @@ -13,8 +13,8 @@ {{ '--ignore-topology-disconnect' if ipaserver_ignore_topology_disconnect | bool else '' }} {{ '--ignore-last-of-role' if ipaserver_ignore_last_of_role | bool else ''}} register: uninstall - # 2 means that uninstall failed because IPA server was not configured - failed_when: uninstall.rc != 0 and uninstall.rc != 2 + # 1 means that uninstall failed because IPA server was not configured + failed_when: uninstall.rc != 0 and uninstall.rc != 1 changed_when: uninstall.rc == 0 #- name: Remove IPA server packages -- GitLab