made exec path for nc occ dynamic by using the {{ nextcloud_install_dir }} var instead of hardcoded dir to /etc/nextcloud

This commit is contained in:
Ebbe Baß
2026-07-15 08:25:33 +02:00
parent 3091393dad
commit c930797ddd
@@ -31,7 +31,7 @@
ansible.builtin.command: > ansible.builtin.command: >
sudo -u www-data php occ app:install richdocuments sudo -u www-data php occ app:install richdocuments
args: args:
chdir: /etc/nextcloud chdir: {{ nextcloud_install_dir }}
register: install_result register: install_result
changed_when: "'already installed' not in install_result.stdout" changed_when: "'already installed' not in install_result.stdout"
failed_when: install_result.rc != 0 and 'already installed' not in install_result.stdout failed_when: install_result.rc != 0 and 'already installed' not in install_result.stdout
@@ -41,7 +41,7 @@
sudo -u www-data php occ config:app:set richdocuments wopi_url sudo -u www-data php occ config:app:set richdocuments wopi_url
--value="https://{{ collabora_code_domain }}:443" --value="https://{{ collabora_code_domain }}:443"
args: args:
chdir: /etc/nextcloud chdir: {{ nextcloud_install_dir }}
changed_when: true changed_when: true
- name: Set the public WOPI URL (same value, used for editor loading) - name: Set the public WOPI URL (same value, used for editor loading)
@@ -49,5 +49,5 @@
sudo -u www-data php occ config:app:set richdocuments public_wopi_url sudo -u www-data php occ config:app:set richdocuments public_wopi_url
--value="https://{{ collabora_code_domain }}:443" --value="https://{{ collabora_code_domain }}:443"
args: args:
chdir: /etc/nextcloud chdir: {{ nextcloud_install_dir }}
changed_when: true changed_when: true