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: vars:
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory" acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
acme_version: 2 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_url: "nc.assburgers.club"
website_root: "/var/www/nextcloud" website_root: "/var/www/nextcloud"
roles: roles:

View File

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