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