server/nextcloud: Moved "config APCu cache" to "add add. entries" with blockinfile task

dehydrated
Felix Stupp 4 years ago
parent d59f4914b6
commit 8e22085ba7
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -88,14 +88,13 @@
line: " 'overwrite.cli.url' => 'https://{{ domain }}',"
validate: /usr/bin/php %s
- name: Configure Nextcloud APCu cache
- name: Add additional entries to Nextcloud config
become_user: "{{ system_user }}"
lineinfile:
blockinfile:
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "^(\\s*)'overwrite\\.cli\\.url' => '.*',$"
regexp: "^(\\s*)'memcache.local' => '.*',$"
line: " 'memcache.local' => '\\\\OC\\\\Memcache\\\\APCu',"
insertbefore: "^\\);"
block: |
'memcache.local' => '\\OC\\Memcache\\APCu',
validate: /usr/bin/php %s
- name: Install Nextcloud apps

Loading…
Cancel
Save