Erste Version, die direkt funktioniert

This commit is contained in:
Frank Schiebel 2025-08-06 08:46:39 +02:00
parent efd48de6c7
commit 1d41476110
4 changed files with 26 additions and 11 deletions

View file

@ -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