From 56684ea11824042d20b44c7ac9a505371fe52807 Mon Sep 17 00:00:00 2001 From: jgoutin Date: Wed, 30 Jun 2021 12:21:18 +0200 Subject: [PATCH] Disable Checksum if signature present and fix error if not checksum information --- tasks/aws.yml | 3 +++ tasks/main.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tasks/aws.yml b/tasks/aws.yml index 238b060..e437af3 100644 --- a/tasks/aws.yml +++ b/tasks/aws.yml @@ -43,12 +43,15 @@ when: - xilinx_xrt_install | bool - not xbutil.stat.exists + - not aws_package_sig.changed - name: Verify XRT AWS package checksum command: sha512sum -c {{ xrt_package }}.digests args: chdir: "{{ xrt_tmp.path }}" changed_when: false + failed_when: _aws_sum.rc != 0 and "Failed to get nevra" not in _aws_sum.stdout + register: _aws_sum when: - xilinx_xrt_install | bool - not xbutil.stat.exists diff --git a/tasks/main.yml b/tasks/main.yml index d674e2d..e9404c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -102,12 +102,15 @@ when: - xilinx_xrt_install | bool - not xbutil.stat.exists + - not xrt_package_sig.changed - name: Verify XRT package checksum command: sha512sum -c {{ xrt_package }}.digests args: chdir: "{{ xrt_tmp.path }}" changed_when: false + failed_when: _xrt_sum.rc != 0 and "Failed to get nevra" not in _xrt_sum.stdout + register: _xrt_sum when: - xilinx_xrt_install | bool - not xbutil.stat.exists