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:
Thomas Woerner
2019-06-14 17:34:04 +02:00
parent ac24f9c067
commit 100b7eabaf

View File

@@ -133,7 +133,7 @@
- name: Install - Store the previously obtained OTP
no_log: yes
set_fact:
ipaadmin_orig_password: "{{ ipaadmin_password }}"
ipaadmin_orig_password: "{{ ipaadmin_password | default(omit) }}"
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword
if result_ipaclient_get_otp.host is defined }}"