Rewrite the docker_image_load module (#406)

* Rewrite the docker_image_load module.

* Improve error messages.
This commit is contained in:
Felix Fontein
2022-07-06 21:46:19 +02:00
committed by GitHub
parent e4f3402035
commit f82c8401c2
3 changed files with 13 additions and 15 deletions
@@ -28,7 +28,7 @@
force_kill: yes
with_items: "{{ cnames }}"
when: docker_py_version is version('2.5.0', '>=') and docker_api_version is version('1.25', '>=')
when: docker_api_version is version('1.25', '>=')
- fail: msg="Too old docker / docker-py version to run docker_image tests!"
when: not(docker_py_version is version('2.5.0', '>=') and docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)