From 668ac8e0eadd370a9aaf42e8183fa75fd9e89d90 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 24 Dec 2023 18:41:59 +0300 Subject: [PATCH] fixed yum return code handling --- tasks/centos_dependencies.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/centos_dependencies.yml b/tasks/centos_dependencies.yml index fc8752f..f15798d 100644 --- a/tasks/centos_dependencies.yml +++ b/tasks/centos_dependencies.yml @@ -1,6 +1,8 @@ --- - name: update repo shell: yum check-update + register: update_exists + failed_when: update_exists.rc != 100 and update_exists.rc != 0 args: warn: false