Files
2022-02-01 08:48:38 +01:00

18 lines
442 B
YAML

---
- name: download Nextcloud and extract archive
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
copy:
src: ~/nextcloud/
dest: ~/html
remote_src: yes
when: nextcloud_archive.changed
- name: remove nocontent.html
file:
path: ~/html/nocontent.html
state: absent