From b9c96659b52db0eb2dbd2f0b7d94d99143f0169c Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Wed, 23 Sep 2020 16:40:06 +0100 Subject: [PATCH] Update wownerod to v0.9.0.0 --- roles/wownerod/defaults/main.yaml | 6 +++--- roles/wownerod/tasks/install.yaml | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/roles/wownerod/defaults/main.yaml b/roles/wownerod/defaults/main.yaml index afc38ce..7b9d32a 100644 --- a/roles/wownerod/defaults/main.yaml +++ b/roles/wownerod/defaults/main.yaml @@ -1,7 +1,7 @@ --- -wownerod_remote_url: "https://distfiles.offtopica.uk/wownerod-0.8.0.2" -wownerod_remote_hash: "sha256:ac7bba8924d43dfc9e9cf868737ebebc68591fdc17273cd0b3b9216e959fb0bc" -wownero_version: "0.8.0.2" +wownero_remote_url: 'https://git.wownero.com/attachments/46245bde-cd00-4cf8-983a-bf21f3e574e3' +wownero_remote_hash: 'sha256:40724396be555ad0d08a4263d83ec6e4dbfbb6d29116c40773eaf681a6faa215' +wownero_version: "0.9.0.0" wownero_bin_dir: "/usr/local/bin" wownerod_path: "{{ wownero_bin_dir }}/wownerod" wownerod_p2p_port: "34567" diff --git a/roles/wownerod/tasks/install.yaml b/roles/wownerod/tasks/install.yaml index 4c492b1..1da2f72 100644 --- a/roles/wownerod/tasks/install.yaml +++ b/roles/wownerod/tasks/install.yaml @@ -1,11 +1,20 @@ --- -- name: Download release binary +- name: Download release tarball get_url: - url: "{{ wownerod_remote_url }}" - dest: "{{ wownerod_path }}" - checksum: "{{ wownerod_remote_hash }}" + url: "{{ wownero_remote_url }}" + dest: "/tmp/wownero-linux-v{{ wownero_version }}.tar.bz2" + checksum: "{{ wownero_remote_hash }}" owner: root group: root mode: '0755' +- name: Extract wownerod + unarchive: + remote_src: yes + src: "/tmp/wownero-linux-v{{ wownero_version }}.tar.bz2" + dest: "{{ wownero_bin_dir }}" + extra_opts: + - "--strip-components=1" + - "--add-file" + - "wownero-linux-v{{ wownero_version }}/wownerod" notify: - restart wownerod