3
0
forked from jakub/ansible
This commit is contained in:
fencl
2025-10-05 16:39:27 +02:00
parent 65642d8114
commit cadc296a1f

View File

@@ -47,7 +47,7 @@
ansible.builtin.command:
argv:
- sshpass
- -e # read password from SSHPASS environment
- -e
- ssh
- -o
- StrictHostKeyChecking=no
@@ -58,13 +58,14 @@
- -lc
- "{{ ('sudo ' if use_sudo else '') + item }}"
environment:
SSHPASS: "{{ vm_pass }}" # supply password via environment
SSHPASS: "{{ vm_pass }}"
loop: "{{ collabora_commands }}"
loop_control:
label: "cmd-{{ loop.index }}" # prevents dumping full item in (item=...) log line
index_var: idx # <-- capture loop index here
label: "cmd-{{ idx }}" # <-- use idx instead of loop.index
register: collab_cmds
changed_when: false
no_log: "{{ DEBUG == 0 }}" # hide outputs and env when not debugging
no_log: "{{ DEBUG == 0 }}"
- name: Show outputs for each Collabora command
ansible.builtin.debug:
@@ -85,7 +86,8 @@
success_msg: "All Collabora update commands succeeded."
loop: "{{ collab_cmds.results }}"
loop_control:
label: "cmd-{{ loop.index }}"
index_var: idx
label: "cmd-{{ idx }}"
# -------------------------
# Readiness checks (controller first, then VM fallback)