|
|
|
@ -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
|
|
|
|
|