mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
82f1438b14
* Add docker_config module * Address review comments * Merge description lines * Stop returning empty config_id in results * Add integration tests for docker_config Based on docker_secret's tests. * Ensure swarm using docker_swarm module * Add minimum docker / docker api version requirements ref: https://github.com/ansible/ansible/pull/47046 * Check Docker API version before running tests ref: https://github.com/ansible/ansible/pull/47340 * Typo * Wording * Improve example * Assert state == absent is idempotent
7 lines
332 B
YAML
7 lines
332 B
YAML
- name: Check Docker API version
|
|
command: "{{ ansible_python.executable }} -c 'import docker; print(docker.from_env().version()[\"ApiVersion\"])'"
|
|
register: docker_api_version
|
|
ignore_errors: yes
|
|
|
|
- include_tasks: test_docker_config.yml
|
|
when: docker_api_version.rc == 0 and docker_api_version.stdout is version('1.30', '>=')
|