Rewrite the docker_login module (#407)

* Rewrite the docker_login module.

* Improve error messages.
This commit is contained in:
Felix Fontein
2022-07-06 21:47:27 +02:00
committed by GitHub
parent f82c8401c2
commit a406b08981
3 changed files with 50 additions and 80 deletions
@@ -3,7 +3,7 @@
- include_tasks: run-test.yml
with_fileglob:
- "tests/*.yml"
when: docker_py_version is version('1.8.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('1.8.0', '>=') and docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)
when: not(docker_api_version is version('1.25', '>=')) and (ansible_distribution != 'CentOS' or ansible_distribution_major_version|int > 6)