summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/docker_swarm_service/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/docker_swarm_service/tasks/main.yml')
-rw-r--r--test/integration/targets/docker_swarm_service/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/integration/targets/docker_swarm_service/tasks/main.yml b/test/integration/targets/docker_swarm_service/tasks/main.yml
index 72828dfc15..8be330dc42 100644
--- a/test/integration/targets/docker_swarm_service/tasks/main.yml
+++ b/test/integration/targets/docker_swarm_service/tasks/main.yml
@@ -68,7 +68,8 @@
state: absent
force: yes
ignore_errors: yes
- when: docker_py_version is version('2.6.0', '>=') and docker_api_version is version('1.24', '>=')
+ # Maximum of 1.24 (docker API version for docker_swarm_service) and 1.25 (docker API version for docker_swarm) is 1.25
+ when: docker_py_version is version('2.0.0', '>=') and docker_api_version is version('1.25', '>=')
- fail: msg="Too old docker / docker-py version to run docker_swarm_service tests!"
- when: not(docker_py_version is version('2.6.0', '>=') and docker_api_version is version('1.24', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
+ when: not(docker_py_version is version('2.0.0', '>=') and docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)