Erste Version, die direkt funktioniert
This commit is contained in:
parent
efd48de6c7
commit
1d41476110
4 changed files with 26 additions and 11 deletions
|
@ -17,8 +17,9 @@
|
|||
- name: Join the domain
|
||||
ansible.builtin.shell:
|
||||
cmd: >
|
||||
echo "{{ ansible_cmdline.adpw | default('') + adpw.user_input | default('') }}" |
|
||||
echo "{{ ansible_cmdline.adpw | default('') + adpw.user_input | default('') + joinpw | default('') }}" |
|
||||
adcli join --stdin-password -U global-admin {{ domain | upper }}
|
||||
when: >
|
||||
ansible_cmdline.adpw | default('') | length > 0 or
|
||||
adpw.user_input | default('') | length > 0
|
||||
adpw.user_input | default('') | length > 0 or
|
||||
joinpw is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue