when:docker_py_version is version('1.8.0', '>=') and docker_api_version is version('1.20', '>=')
when:docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')
- fail:msg="Too old docker / docker-py version to run all docker_container tests!"
- fail:msg="Too old docker / docker-py version to run all docker_container tests!"
when:not(docker_py_version is version('3.5.0', '>=') and docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when:not(docker_py_version is version('3.5.0', '>=') and docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when:docker_py_version is version('1.8.0', '>=') and docker_api_version is version('1.20', '>=')
when:docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')
- fail:msg="Too old docker / docker-py version to run docker_image tests!"
- fail:msg="Too old docker / docker-py version to run docker_image tests!"
when:not(docker_py_version is version('1.8.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when:not(docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
- "'hello-world:latest' in result.images[0].RepoTags"
- "'hello-world:latest' in result.images[0].RepoTags"
- "'alpine:3.8' in result.images[1].RepoTags"
- "'alpine:3.8' in result.images[1].RepoTags"
when:docker_py_version is version('1.8.0', '>=') and docker_api_version is version('1.20', '>=')
when:docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')
- fail:msg="Too old docker / docker-py version to run docker_image_facts tests!"
- fail:msg="Too old docker / docker-py version to run docker_image_facts tests!"
when:not(docker_py_version is version('1.8.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when:not(docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.20', '>=') # FIXME:find out API version!
when: docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=') # FIXME:find out API version!
- fail:msg="Too old docker / docker-py version to run docker_network tests!"
- fail:msg="Too old docker / docker-py version to run docker_network tests!"
when:not(docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when:not(docker_py_version is version('1.7.0', '>=') and docker_api_version is version('1.20', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)