Use an archive Nextcloud actually provides

This commit is contained in:
Salt 2020-02-05 21:56:33 -06:00
parent f9d69fe220
commit 4975ed3ffd
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
vars:
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
acme_version: 2
nextcloud_targz: "https://download.nextcloud.com/server/releases/nextcloud-18.0.0.tar.gz"
nextcloud_tarbz2: "https://download.nextcloud.com/server/releases/nextcloud-18.0.0.tar.bz2"
website_url: "nc.assburgers.club"
website_root: "/var/www/nextcloud"
roles:

View File

@ -52,11 +52,11 @@
block:
- name: Download Nextcloud
get_url:
dest: /var/www/nextcloud.tar.gz
url: "{{ nextcloud_targz }}"
dest: /var/www/nextcloud.tar.bz2
url: "{{ nextcloud_tarbz2 }}"
- name: Extract Nextcloud
unarchive:
src: /var/www/nextcloud.tar.gz
src: /var/www/nextcloud.tar.bz2
dest: "{{ website_root }}"
extra_opts: [--strip-components=1]
- name: Cleanup