mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 21:42:17 +00:00
Merge pull request #4 from flo-renaud/simplify_uninstall
Simplify ipaclient uninstall
This commit is contained in:
@@ -6,8 +6,11 @@
|
||||
static: yes
|
||||
|
||||
- name: Uninstall - Uninstall IPA client
|
||||
ipaclient:
|
||||
state: absent
|
||||
command: /usr/sbin/ipa-client-install --uninstall -U
|
||||
register: uninstall
|
||||
# 2 means that uninstall failed because IPA client was not configured
|
||||
failed_when: uninstall.rc != 0 and uninstall.rc != 2
|
||||
changed_when: uninstall.rc == 0
|
||||
|
||||
#- name: Remove IPA client package
|
||||
# package:
|
||||
|
||||
Reference in New Issue
Block a user