server/nextcloud: Enable apc on using occ commands

Required since Nextcloud 21
master
Felix Stupp 4 years ago
parent 1bf40022a9
commit e267e345da
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -56,7 +56,10 @@
- name: Install Nextcloud - name: Install Nextcloud
become_user: "{{ system_user }}" become_user: "{{ system_user }}"
command: >- command: >-
/usr/bin/php occ maintenance:install /usr/bin/php
--define apc.enable_cli=1
occ
maintenance:install
--database mysql --database mysql
--database-name {{ database_name | quote }} --database-name {{ database_name | quote }}
--database-user {{ database_user | quote }} --database-user {{ database_user | quote }}
@ -82,7 +85,9 @@
- name: Import additional Nextcloud configuration - name: Import additional Nextcloud configuration
become_user: "{{ system_user }}" become_user: "{{ system_user }}"
command: >- command: >-
/usr/bin/php occ /usr/bin/php
--define apc.enable_cli=1
occ
config:import config:import
{{ import_config_file | quote }} {{ import_config_file | quote }}
args: args:
@ -112,7 +117,9 @@
- name: Install Nextcloud apps - name: Install Nextcloud apps
become_user: "{{ system_user }}" become_user: "{{ system_user }}"
command: >- command: >-
/usr/bin/php occ /usr/bin/php
--define apc.enable_cli=1
occ
app:install app:install
{{ item | quote }} {{ item | quote }}
args: args:
@ -130,7 +137,9 @@
- name: Disable some Nextcloud apps - name: Disable some Nextcloud apps
become_user: "{{ system_user }}" become_user: "{{ system_user }}"
command: >- command: >-
/usr/bin/php occ /usr/bin/php
--define apc.enable_cli=1
occ
app:disable app:disable
{{ item | quote }} {{ item | quote }}
args: args:

Loading…
Cancel
Save