server/nextcloud: Fixed changing configuration of nextcloud instance

- Fixes configuring APCu cache
dehydrated
Felix Stupp 4 years ago
parent 5c374bc977
commit d40a8cee92
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -71,34 +71,31 @@
- name: Configure Nextcloud default domain
become_user: "{{ system_user }}"
lineinfile:
backrefs: yes
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "array \\("
regexp: "^(\\s*)0 => '([^.]\\.)+[^.]*',$"
line: "\\g<1>0 => '{{ domain }}',"
line: " 0 => '{{ domain }}',"
validate: /usr/bin/php %s
- name: Configure Nextcloud default domain for cli
become_user: "{{ system_user }}"
lineinfile:
backrefs: yes
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "'version'"
regexp: "^(\\s*)'overwrite.cli.url' => '.*',$"
line: "\\1'overwrite.cli.url' => 'https://{{ domain }}',"
line: " 'overwrite.cli.url' => 'https://{{ domain }}',"
validate: /usr/bin/php %s
- name: Configure Nextcloud APCu cache
become_user: "{{ system_user }}"
lineinfile:
backrefs: yes
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "'overwrite\\.cli\\.url'"
insertafter: "^(\\s*)'overwrite\\.cli\\.url' => '.*',$"
regexp: "^(\\s*)'memcache.local' => '.*',$"
line: "\\1'memcache.local' => '\\\\OC\\\\Memcache\\\\APCu',"
line: " 'memcache.local' => '\\\\OC\\\\Memcache\\\\APCu',"
validate: /usr/bin/php %s
- name: Install Nextcloud apps

Loading…
Cancel
Save