Blame roles/ipaclient/tasks/uninstall.yml

Packit Service 0a38ef
---
Packit Service 0a38ef
# tasks to uninstall IPA client
Packit Service 0a38ef
Packit Service 0a38ef
- name: Uninstall - Uninstall IPA client
Packit Service 0a38ef
  command: >
Packit Service 0a38ef
    /usr/sbin/ipa-client-install
Packit Service 0a38ef
    --uninstall
Packit Service 0a38ef
    -U
Packit Service 0a38ef
  register: uninstall
Packit Service 0a38ef
  # 2 means that uninstall failed because IPA client was not configured
Packit Service 0a38ef
  failed_when: uninstall.rc != 0 and uninstall.rc != 2
Packit Service 0a38ef
  changed_when: uninstall.rc == 0
Packit Service 0a38ef
Packit Service 0a38ef
#- name: Remove IPA client package
Packit Service 0a38ef
#  package:
Packit Service 0a38ef
#    name: "{{ ipaclient_packages }}"
Packit Service 0a38ef
#    state: absent