forked from jakub/ansible
.
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
loop: "{{ collabora_commands }}"
|
||||
register: collab_cmds
|
||||
changed_when: false
|
||||
no_log: "{{ DEBUG == 0 }}" # 🔒 Hide sensitive info when DEBUG=0
|
||||
no_log: "{{ DEBUG == 0 }}"
|
||||
|
||||
- name: Show outputs for each Collabora command
|
||||
ansible.builtin.debug:
|
||||
@@ -72,7 +72,7 @@
|
||||
STDERR:
|
||||
{{ (item.stderr | default('')).strip() }}
|
||||
loop: "{{ collab_cmds.results }}"
|
||||
when: DEBUG == 1 # 🪵 Only show debug output if DEBUG=1
|
||||
when: DEBUG == 1
|
||||
|
||||
- name: Fail play if any Collabora command failed
|
||||
ansible.builtin.assert:
|
||||
@@ -128,8 +128,7 @@
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when: caps_controller.status | default(0) != 200 or caps_controller.json is not defined
|
||||
no_log: "{{ DEBUG == 0 }}" # 🔒 Hide command and output when not debugging
|
||||
|
||||
no_log: "{{ DEBUG == 0 }}"
|
||||
- name: Collabora | Choose JSON (controller wins, else VM)
|
||||
ansible.builtin.set_fact:
|
||||
collab_caps_json: >-
|
||||
@@ -151,7 +150,7 @@
|
||||
({{ collab_caps_json.productName | default('?') }}),
|
||||
convert-to.available={{ collab_caps_json['convert-to']['available'] | default('n/a') }},
|
||||
serverId={{ collab_caps_json.serverId | default('n/a') }}
|
||||
when: collab_caps_json is defined and DEBUG == 1 # 🪵 Only print in debug mode
|
||||
when: collab_caps_json is defined and DEBUG == 1
|
||||
|
||||
- name: Collabora | Capabilities unavailable (after retries)
|
||||
ansible.builtin.debug:
|
||||
@@ -162,4 +161,4 @@
|
||||
- name: Collabora | Full JSON (debug)
|
||||
ansible.builtin.debug:
|
||||
var: collab_caps_json
|
||||
when: collabora_debug_caps and (collab_caps_json is defined) and DEBUG == 1 # 🪵 Only when debugging
|
||||
when: collabora_debug_caps and (collab_caps_json is defined) and DEBUG == 1
|
||||
|
||||
Reference in New Issue
Block a user