removed become www-data
This commit is contained in:
+3
-6
@@ -30,28 +30,25 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Enable richdocuments app
|
- name: Enable richdocuments app
|
||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
occ app:install richdocuments
|
sudo -u www-data php occ app:install richdocuments
|
||||||
args:
|
args:
|
||||||
chdir: /etc/nextcloud
|
chdir: /etc/nextcloud
|
||||||
become_user: www-data
|
|
||||||
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
|
||||||
|
|
||||||
- name: Point richdocuments at the Collabora server
|
- name: Point richdocuments at the Collabora server
|
||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
occ config:app:set richdocuments wopi_url
|
sudo -u www-data php occ config:app:set richdocuments wopi_url
|
||||||
--value="http://{{ collabora_fqdn }}:9980"
|
--value="http://{{ collabora_fqdn }}:9980"
|
||||||
args:
|
args:
|
||||||
chdir: /etc/nextcloud
|
chdir: /etc/nextcloud
|
||||||
become_user: www-data
|
|
||||||
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)
|
||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
occ config:app:set richdocuments public_wopi_url
|
sudo -u www-data php occ config:app:set richdocuments public_wopi_url
|
||||||
--value="http://{{ collabora_fqdn }}:9980"
|
--value="http://{{ collabora_fqdn }}:9980"
|
||||||
args:
|
args:
|
||||||
chdir: /etc/nextcloud
|
chdir: /etc/nextcloud
|
||||||
become_user: www-data
|
|
||||||
changed_when: true
|
changed_when: true
|
||||||
Reference in New Issue
Block a user