From 036f93c32eefa06a4857064781d750ebe1810cd9 Mon Sep 17 00:00:00 2001 From: Svetlin Kalendzhiev Date: Wed, 27 Jan 2021 14:45:51 +0000 Subject: [PATCH] [feat] ansible compatibility: update deprecated syntax Update deprecated syntax for version_compare to make this role compatible with current versions of ansible (>2.5) --- tasks/dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/dependencies.yml b/tasks/dependencies.yml index e6d4917..4f1dfb0 100644 --- a/tasks/dependencies.yml +++ b/tasks/dependencies.yml @@ -3,13 +3,13 @@ package: name: "python3-pip" state: "present" - when: "ansible_python_version | version_compare('3.0.0', '>=')" + when: "ansible_python_version is version_compare('3.0.0', '>=')" - name: "Install pip to manage python packages" package: name: "python-pip" state: "present" - when: "ansible_python_version | version_compare('3.0.0', '<=')" + when: "ansible_python_version is version_compare('3.0.0', '<=')" - name: "Install the passlib python library" pip: