From d4eb2bec84d852c8314e80f90e0beb8edd0e8b92 Mon Sep 17 00:00:00 2001 From: Logan Attwood Date: Fri, 17 Feb 2017 17:13:19 -0400 Subject: [PATCH] Change ansible version check This is broken in (unreleased) Ansible 2.3 still. --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 4a01edd..a030bd5 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -4,6 +4,6 @@ # which is incompatible with the docker_container module in Ansible < 2.3 # TODO: update ansible version in the comparison when https://github.com/ansible/ansible/issues/20492 gets fixed. _pip_version_docker_compose: >- - {{ '1.9.0' if ansible_version.full | version_compare('2.3', '<') + {{ '1.9.0' if ansible_version.full | version_compare('2.3', '<=') and (pip_version_docker_compose=='latest' or pip_version_docker_compose | version_compare('1.9.0', '>')) else pip_version_docker_compose }}