mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Current version of ansible-list pre-commit hook required changes in the ansible-freeipa yamllint configuration and these changes triggered issues in the current playbooks on roles and tests. This patch adds the required changes to yaml lint configuration and fixes the affected playbooks. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
18 lines
492 B
YAML
18 lines
492 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
|