mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +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
21 lines
653 B
YAML
21 lines
653 B
YAML
---
|
|
# tasks to uninstall IPA server
|
|
|
|
- name: Uninstall - Uninstall IPA server
|
|
ansible.builtin.command: >
|
|
/usr/sbin/ipa-server-install
|
|
--uninstall
|
|
-U
|
|
{{ '--ignore-topology-disconnect' if ipaserver_ignore_topology_disconnect
|
|
| bool else '' }}
|
|
{{ '--ignore-last-of-role' if ipaserver_ignore_last_of_role | bool else '' }}
|
|
register: uninstall
|
|
# 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
|
|
# ansible.builtin.package:
|
|
# name: "{{ ipaserver_packages }}"
|
|
# state: absent
|