mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-23 09:14:43 +00:00
ipaclient: Do not fail if ipaadmin_password is not used
This is for example the case if ipaadmin_keytab is used instead without ipaclient_use_otp.
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
- name: Install - Store the previously obtained OTP
|
- name: Install - Store the previously obtained OTP
|
||||||
no_log: yes
|
no_log: yes
|
||||||
set_fact:
|
set_fact:
|
||||||
ipaadmin_orig_password: "{{ ipaadmin_password }}"
|
ipaadmin_orig_password: "{{ ipaadmin_password | default(omit) }}"
|
||||||
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword
|
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword
|
||||||
if result_ipaclient_get_otp.host is defined }}"
|
if result_ipaclient_get_otp.host is defined }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user