From 6515c4b28149f3c75f97689e64060d681a0d4bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 13 Jun 2024 17:06:02 +0200 Subject: [PATCH] ansible/roles.py: fix checking ancestry during update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/roles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles.py b/ansible/roles.py index ab0d52c..9089c13 100755 --- a/ansible/roles.py +++ b/ansible/roles.py @@ -253,8 +253,8 @@ def handle_role(role, check=False, update=False, install=False): return role # Check if current version is newer. - if role.is_ancestor(): - return role + if not update and role.is_ancestor(): + return role # Check if current version matches required. if role.valid_version():