mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 02:35:54 +00:00
As the old way to include tasks is deprecated, replace static include statements with import_tasks and dynamic ones with include_tasks. Increaded the required ansible version to 2.5.0 to make sure that include_tasks and import_tasks is working as expected. Fixes issue #38
22 lines
574 B
YAML
22 lines
574 B
YAML
---
|
|
# tasks to uninstall IPA client
|
|
|
|
#- name: Uninstall - Include Python2/3 import test
|
|
# import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
|
|
|
|
- name: Uninstall - Uninstall IPA client
|
|
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:
|
|
# name: "{{ item }}"
|
|
# state: absent
|
|
# with_items: "{{ ipaclient_packages }}"
|