Fixed errors in playbook

This commit is contained in:
2021-11-06 16:14:55 +01:00
parent 5720ea6bce
commit e8fdabc8b5
9 changed files with 70 additions and 52 deletions

View File

@ -1,17 +1,18 @@
---
- name: download Nextcloud and extract archive
ansible.builtin.unarchive:
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:
copy:
src: ~/nextcloud/
dest: ~/html
remote_src: yes
when: nextcloud_archive is successful
- name: remove nocontent.html
ansible.builtin.file:
file:
path: ~/html/nocontent.html
state: absent