ansible/roles.py: fix checking ancestry during update
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c17561ec12
commit
6515c4b281
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue