mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
• 02_add_missing_indices.yml: switched to shell (+ansible_command_timeout), removed async/poll. • 04_system_config.yml: batch OCC calls (set -euo pipefail, /bin/bash), safer quoting, change detection via ' set to '. • 05_plugin.yml: disable task with stricter failed_when/changed_when (combine stdout+stderr). • 06_plugin_routines.yml: disable incompatible plugins in a single batch; no async_status; robust changed_when. • 07_plugin_enable_and_configure.yml: batch config:app:set, safe quoting, clear changed_when/failed_when. • config/main.yml & vars/main.yml: removed performance.async.wait_for and nextcloud_wait_for_async_enabled.
15 lines
593 B
YAML
15 lines
593 B
YAML
- name: "Add missing DB indices in Nextcloud (single run)"
|
|
ansible.builtin.shell: |
|
|
set -e
|
|
{{ nextcloud_docker_exec_occ }} db:add-missing-indices
|
|
args:
|
|
executable: /bin/bash
|
|
vars:
|
|
# Give the command enough time without async/poll overhead
|
|
ansible_command_timeout: 3600
|
|
register: db_indices_result
|
|
failed_when: db_indices_result.rc != 0
|
|
changed_when: >
|
|
('Adding additional' in (db_indices_result.stdout | default(''))) or
|
|
('Removing' in (db_indices_result.stdout | default(''))) or
|
|
('updated successfully' in (db_indices_result.stdout | default(''))) |