Add NextCloud task
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
- name: "unzip archive"
|
||||
ansible.builtin.unarchive:
|
||||
src: "https://download.nextcloud.com/server/releases/nextcloud-{{ nextcloud_version }}.zip"
|
||||
dest: "/var/www/"
|
||||
owner: www-data
|
||||
group: www-data
|
||||
creates: "/var/www/nextcloud"
|
||||
remote_src: true
|
||||
|
||||
- name: "Create nextcloud data directory"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: /var/www/nextcloud-data
|
||||
owner: www-data
|
||||
group: www-data
|
||||
mode: '0700'
|
||||
|
||||
#- name: "Change path to nextcloud data"
|
||||
# ansible.builtin.replace:
|
||||
# path: /var/www/nextcloud/config/config.php
|
||||
# regexp: "'datadirectory' => '/var/www/nextcloud/data'"
|
||||
# replace: "'datadirectory' => '/var/www/nextcloud-data'"
|
||||
Reference in New Issue
Block a user