ansible/roles.py: fix checking ancestry during update

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-06-13 17:06:02 +02:00
parent c17561ec12
commit 6515c4b281
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 2 additions and 2 deletions

View File

@ -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():