Fix condition, when ad.user_input is not defined (Part II)
This commit is contained in:
parent
a72f16fd20
commit
60b585f306
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
no_log: true
|
||||
vars:
|
||||
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('') }}"
|
||||
ad_passwd: "{{ adpw.user_input | default('') if adpw.user_input | default ('') | length > 0 else ansible_cmdline.adpw | default(sssd_domjoin_passwd) | default('') }}"
|
||||
when:
|
||||
- adpw.user_input | default('') | length > 0 or
|
||||
ansible_cmdline.adpw | default(sssd_domjoin_passwd) | default('') | length > 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue