Fix condition, when ad.user_input is not defined
This commit is contained in:
parent
e02add04ae
commit
a72f16fd20
1 changed files with 1 additions and 1 deletions
|
|
@ -30,6 +30,6 @@
|
|||
ad_user: "{{ 'global-admin' if (adpw.user_input | default(ansible_cmdline.adpw) | default('') | length > 0) else sssd_domjoin_user }}"
|
||||
ad_passwd: "{{ adpw.user_input | default('') if adpw.user_input | length > 0 else ansible_cmdline.adpw | default(sssd_domjoin_passwd) | default('') }}"
|
||||
when:
|
||||
- adpw.user_input | length > 0 or
|
||||
- adpw.user_input | default('') | length > 0 or
|
||||
ansible_cmdline.adpw | default(sssd_domjoin_passwd) | default('') | length > 0
|
||||
- adcli_test_result.rc != 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue