Added new role
This commit is contained in:
17
roles/nextcloud/tasks/download.yml
Normal file
17
roles/nextcloud/tasks/download.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: download Nextcloud and extract archive
|
||||
ansible.builtin.unarchive:
|
||||
src: https://download.nextcloud.com/server/releases/latest.tar.bz2
|
||||
dest: ~/
|
||||
remote_src: yes
|
||||
creates: ~/nextcloud
|
||||
register: nextcloud_archive
|
||||
- name: copy files to web root
|
||||
ansible.builtin.copy:
|
||||
src: ~/nextcloud/
|
||||
dest: ~/html
|
||||
remote_src: yes
|
||||
- name: remove nocontent.html
|
||||
ansible.builtin.file:
|
||||
path: ~/html/nocontent.html
|
||||
state: absent
|
||||
Reference in New Issue
Block a user