ipaserver/tasks/uninstall.yml: Fix error for using uninstall on not installed server

This commit is contained in:
Thomas Woerner
2018-01-31 23:40:31 +01:00
parent 986ac80a60
commit 9adfb2f5a0

View File

@@ -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