mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-23 09:14:43 +00:00
roles/ipaclient/tasks/[un]install.yml: Use better formatting for commands
This commit is contained in:
@@ -90,7 +90,10 @@
|
|||||||
when: not ipatest.krb5_keytab_ok and (ipaadmin_password is undefined or ipaadmin_password == "") and (ipaclient_keytab is undefined or ipaclient_keytab == "")
|
when: not ipatest.krb5_keytab_ok and (ipaadmin_password is undefined or ipaadmin_password == "") and (ipaclient_keytab is undefined or ipaclient_keytab == "")
|
||||||
|
|
||||||
- name: Install - Purge {{ ipadiscovery.realm }} from host keytab
|
- name: Install - Purge {{ ipadiscovery.realm }} from host keytab
|
||||||
command: /usr/sbin/ipa-rmkeytab -k /etc/krb5.keytab -r "{{ ipadiscovery.realm }}"
|
command: >
|
||||||
|
/usr/sbin/ipa-rmkeytab
|
||||||
|
-k /etc/krb5.keytab
|
||||||
|
-r "{{ ipadiscovery.realm }}"
|
||||||
register: iparmkeytab
|
register: iparmkeytab
|
||||||
# Do not fail on error codes 3 and 5:
|
# Do not fail on error codes 3 and 5:
|
||||||
# 3 - Unable to open keytab
|
# 3 - Unable to open keytab
|
||||||
|
|||||||
@@ -6,7 +6,10 @@
|
|||||||
static: yes
|
static: yes
|
||||||
|
|
||||||
- name: Uninstall - Uninstall IPA client
|
- name: Uninstall - Uninstall IPA client
|
||||||
command: /usr/sbin/ipa-client-install --uninstall -U
|
command: >
|
||||||
|
/usr/sbin/ipa-client-install
|
||||||
|
--uninstall
|
||||||
|
-U
|
||||||
register: uninstall
|
register: uninstall
|
||||||
# 2 means that uninstall failed because IPA client was not configured
|
# 2 means that uninstall failed because IPA client was not configured
|
||||||
failed_when: uninstall.rc != 0 and uninstall.rc != 2
|
failed_when: uninstall.rc != 0 and uninstall.rc != 2
|
||||||
|
|||||||
Reference in New Issue
Block a user