From c4731fb37ed2ff86f30873333a2ae3805b3d9ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 24 Mar 2018 21:35:44 +0100 Subject: [PATCH] nextcloud: verify archive checksum --- nextcloud/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nextcloud/tasks/main.yml b/nextcloud/tasks/main.yml index 3bed1562..80c78e3f 100644 --- a/nextcloud/tasks/main.yml +++ b/nextcloud/tasks/main.yml @@ -66,6 +66,23 @@ tags: - nextcloud +- name: Retrieve Nextcloud sha256 checksum + get_url: + url: "https://download.nextcloud.com/server/releases/nextcloud-{{ item.value.version | default(nextcloud_version) }}.tar.bz2.sha256" + dest: "/home/nextcloud-{{ item.value.version | default(nextcloud_version) }}.tar.bz2.sha256" + with_dict: "{{ nextcloud_instances }}" + tags: + - nextcloud + +- name: Verify Nextcloud sha256 checksum + command: "sha256sum -c nextcloud-{{ item.value.version | default(nextcloud_version) }}.tar.bz2.sha256" + changed_when: False + args: + chdir: "/home/" + with_dict: "{{ nextcloud_instances }}" + tags: + - nextcloud + - name: Extract Nextcloud archive unarchive: src: '/home/nextcloud-{{ item.value.version | default(nextcloud_version) }}.tar.bz2'