From be9de6b9d9f1036656d59bcaeb8e6776d0e03240 Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Fri, 19 Nov 2021 18:02:51 +0100 Subject: [PATCH] Fix debian 9 check for apt cache update (#8215) --- roles/bootstrap-os/tasks/bootstrap-debian.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/roles/bootstrap-os/tasks/bootstrap-debian.yml b/roles/bootstrap-os/tasks/bootstrap-debian.yml index 5562645fc..47bad2047 100644 --- a/roles/bootstrap-os/tasks/bootstrap-debian.yml +++ b/roles/bootstrap-os/tasks/bootstrap-debian.yml @@ -56,10 +56,7 @@ become: true when: - '''ID=debian'' in os_release.stdout_lines' - - ( - '''VERSION="10'' in os_release.stdout_lines' or - '''VERSION="11'' in os_release.stdout_lines' - ) + - '''VERSION_ID="10"'' in os_release.stdout_lines or ''VERSION_ID="11"'' in os_release.stdout_lines' register: bootstrap_update_apt_result changed_when: - '"changed its" in bootstrap_update_apt_result.stdout'