From c5f6255442b6d43a34972011765084c268da3781 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 28 Jan 2025 11:43:27 +0100 Subject: [PATCH 1/2] Add check_mode to the checksum task Signed-off-by: Santiago Lo Coco --- roles/_common/tasks/install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/_common/tasks/install.yml b/roles/_common/tasks/install.yml index d5c77a8e..4cb1bd3e 100644 --- a/roles/_common/tasks/install.yml +++ b/roles/_common/tasks/install.yml @@ -90,6 +90,7 @@ return_content: true status_code: [200, 203, 204, 206, 300, 301, 302, 303, 304, 307, 308] follow_redirects: all + check_mode: false register: __common_binary_checksums_raw - name: "Parse checksum list for {{ __common_binary_basename }}" From 859a4f4cef90b9fa7a6de78f67dfa05bfa8aa755 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 28 Jan 2025 13:05:34 +0100 Subject: [PATCH 2/2] Use check_mode in the checksum block Signed-off-by: Santiago Lo Coco --- roles/_common/tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/_common/tasks/install.yml b/roles/_common/tasks/install.yml index 4cb1bd3e..9c5e4cb5 100644 --- a/roles/_common/tasks/install.yml +++ b/roles/_common/tasks/install.yml @@ -80,6 +80,7 @@ - name: "Verify checksum of {{ __common_binary_basename }}" run_once: true + check_mode: false when: (_common_checksums_url) block: - name: "Fetch checksum list for {{ __common_binary_basename }}" @@ -90,7 +91,6 @@ return_content: true status_code: [200, 203, 204, 206, 300, 301, 302, 303, 304, 307, 308] follow_redirects: all - check_mode: false register: __common_binary_checksums_raw - name: "Parse checksum list for {{ __common_binary_basename }}"