change get_url in combination with unarchiv or apt

This commit is contained in:
Oli
2023-02-04 16:40:03 +00:00
parent 5435284e75
commit a44b410265
8 changed files with 79 additions and 81 deletions

View File

@@ -19,10 +19,19 @@
mode: 0775
force: false
- name: unpack nextcloud latest from nextcloud.com
- name: Download nextcloud latest from nextcloud.com
get_url:
url: "https://download.nextcloud.com/server/releases/latest.tar.bz2"
dest: "/var/tmp/nextcloud.tar.gz"
register: _download_archive
until: _download_archive is succeeded
retries: 3
delay: 5
- name: Unpack nextcloud
unarchive:
remote_src: true
src: "https://download.nextcloud.com/server/releases/latest.tar.bz2"
src: "/var/tmp/nextcloud.tar.gz"
dest: "{{ nextcloud_dir }}"
owner: "{{ webserver_user }}"
group: "{{ webserver_group }}"