mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 18:55:53 +00:00
Use Fully Qualified Collection Name (FQCN) for ansible builtins. This is ansible.builtin.set_fact instead of set_fact for example and aplies for all actions that are part of ansible.builtin. All the replaced ansible.builtins: assert, command, copy, debug, fail, fetch, file, import_playbook, import_tasks, include_role, include_tasks, include_vars, package, set_fact, shell, slurp, stat, systemd
23 lines
613 B
YAML
23 lines
613 B
YAML
---
|
|
# tasks to uninstall IPA client
|
|
|
|
- name: Uninstall - Uninstall IPA client
|
|
ansible.builtin.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: Uninstall - Unconfigure DNS resolver
|
|
ipaclient_configure_dns_resolver:
|
|
state: absent
|
|
when: ipaclient_cleanup_dns_resolver | bool
|
|
|
|
#- name: Remove IPA client package
|
|
# ansible.builtin.package:
|
|
# name: "{{ ipaclient_packages }}"
|
|
# state: absent
|