From 100b7eabaf1c897d2b68ace631fccdb1b36624ff Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Fri, 14 Jun 2019 17:34:04 +0200 Subject: [PATCH] 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. --- roles/ipaclient/tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ipaclient/tasks/install.yml b/roles/ipaclient/tasks/install.yml index 72864fe3..bca5d77b 100644 --- a/roles/ipaclient/tasks/install.yml +++ b/roles/ipaclient/tasks/install.yml @@ -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 }}" -- GitLab