From 4b62267ec22e3591f820a9d55138581d2a3da495 Mon Sep 17 00:00:00 2001 From: jgoutin Date: Wed, 30 Jun 2021 11:42:16 +0200 Subject: [PATCH] Fix signature check when using AWS packages --- tasks/aws.yml | 2 ++ tasks/main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasks/aws.yml b/tasks/aws.yml index 2d479a9..238b060 100644 --- a/tasks/aws.yml +++ b/tasks/aws.yml @@ -27,6 +27,8 @@ args: chdir: "{{ xrt_tmp.path }}" changed_when: false + failed_when: _aws_sig.rc != 0 and "could not be verified." not in _aws_sig.stderr + register: _aws_sig when: - xilinx_xrt_install | bool - not xbutil.stat.exists diff --git a/tasks/main.yml b/tasks/main.yml index 094b2f0..d674e2d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -86,6 +86,8 @@ args: chdir: "{{ xrt_tmp.path }}" changed_when: false + failed_when: _xrt_sig.rc != 0 and "could not be verified." not in _xrt_sig.stderr + register: _xrt_sig when: - xilinx_xrt_install | bool - not xbutil.stat.exists