2021-11-02 21:48:41 +01:00
|
|
|
---
|
|
|
|
- name: download Nextcloud and extract archive
|
2021-11-06 16:14:55 +01:00
|
|
|
unarchive:
|
2021-11-02 21:48:41 +01:00
|
|
|
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
|
2021-11-06 16:14:55 +01:00
|
|
|
copy:
|
2021-11-02 21:48:41 +01:00
|
|
|
src: ~/nextcloud/
|
|
|
|
dest: ~/html
|
|
|
|
remote_src: yes
|
2021-11-06 16:14:55 +01:00
|
|
|
when: nextcloud_archive is successful
|
2021-11-02 21:48:41 +01:00
|
|
|
- name: remove nocontent.html
|
2021-11-06 16:14:55 +01:00
|
|
|
file:
|
2021-11-02 21:48:41 +01:00
|
|
|
path: ~/html/nocontent.html
|
|
|
|
state: absent
|