fix ansible script

This commit is contained in:
Pim Kunis 2023-05-06 16:59:37 +02:00
parent 63603599ee
commit 2f0ee73de3

View file

@ -25,28 +25,3 @@
- name: Install nextcloud snap - name: Install nextcloud snap
snap: snap:
name: nextcloud name: nextcloud
- name: Allow access to removable media
command:
cmd: snap connect nextcloud:removable-media
- name: Sleep
pause:
seconds: 15
- name: Stop nextcloud
command:
cmd: snap stop nextcloud
- name: Change data directory
lineinfile:
path: /var/snap/nextcloud/current/nextcloud/config/config.php
line: " 'datadirectory' => '/mnt/data/nextcloud/data',"
regexp: " 'datadirectory' => "
backrefs: yes
- name: Start nextcloud
command:
cmd: snap start nextcloud
# Default data dir /var/snap/nextcloud/common/nextcloud/data