Moved update commands to nextcloud role

This commit is contained in:
2025-08-20 06:07:33 +02:00
parent a57fe718de
commit 39a54294dd
13 changed files with 57 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
- name: enable {{plugin_key}} nextcloud plugin
command: "{{nextcloud_docker_exec_occ}} app:enable {{plugin_key}}"
command: "{{NEXTCLOUD_DOCKER_EXEC_OCC}} app:enable {{plugin_key}}"
register: enable_result
changed_when: enable_result.rc == 0 and ("already enabled" not in enable_result.stdout)
@@ -19,7 +19,7 @@
ansible.builtin.shell: |
set -euo pipefail
{% for item in (plugin_configuration | default([])) %}
{{ nextcloud_docker_exec_occ }} \
{{ NEXTCLOUD_DOCKER_EXEC_OCC }} \
config:app:set {{ item.appid }} {{ item.configkey }} \
--value '{{ ( (item.configvalue | to_json) if (item.configvalue is mapping) else (item.configvalue | string) )
| regex_replace("'", "'" ~ '"' ~ "'" ~ '"' ~ "'") }}'