-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose > 1.10 requires the docker python package which is incompatible with the docker_container module in Ansible < 2.3.
- Loading branch information
Jonathan Piron
committed
Jan 20, 2017
1 parent
6a5ca77
commit 2299a2f
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# 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 | ||
_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', '>')) | ||
else pip_version_docker_compose }} |