Use an archive Nextcloud actually provides
This commit is contained in:
parent
f9d69fe220
commit
4975ed3ffd
2
ec2.yml
2
ec2.yml
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user