diff --git a/vars/main.yml b/vars/main.yml index 9e4e59b..4a01edd 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,6 +2,7 @@ # Downgrade docker-compose version if ansible version < 2.3 and docker-compose > 1.9.0 # Because of docker-compose 1.10+ requires docker python package (instead of the docker-py one) # 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', '<') and (pip_version_docker_compose=='latest' or pip_version_docker_compose | version_compare('1.9.0', '>'))