From 646656027e90f117152cc9d3c57c7228e66fb3bb Mon Sep 17 00:00:00 2001 From: James Flynn Date: Mon, 10 May 2021 09:12:55 +0100 Subject: [PATCH] Fix: Replace check with Ansible version comparison Previous String check was broken when version rolled over to 2.10.0, since it was comparing Strings rather than version numbers. Ansible's version comparison function (https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#comparing-versions) fixes this issue. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index bd001478..c7c335b1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,4 +13,4 @@ - "or" - " pip install --user -r {{ role_path }}/files/requirements-azure.txt" - "depending on your ansible setup." - when: ansible_version.full < "2.5.0" + when: ansible_version.full is version('2.5.0', '<')