community.general/lib/ansible/modules/cloud/docker
Akshay Gaikwad 20b95adf2b Add Support of healthcheck in docker_container module (#46772)
* Add Support of healthcheck in docker_container module

Fixes #33622
Now container can be started with healthcheck enabled

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Extend docker_container healthcheck (#1)

* Allowing to disable healthcheck.

* Added test for healthcheck.

* Make sure correct types are used.

* Healthcheck needs to be explicitly disabled with test: ['NONE'].

* pep8 fixes

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Fix bug if healthcheck interval is 1 day or more

`timedelta` object has days too and seconds are up to one day.
Therefore use `total_seconds()` to convert time into seconds.

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Add test for healthcheck when healthcheck is not specified

This is to avoid the situation when healthcheck is not specified and
treat this as healthcheck is changed or removed.

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Convert string syntax for healthcheck test to CMD-SHELL

Also add another test case to check idempotency when healthcheck test
is specified as string

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Playbook fails if minimun docker version is not satisfy for healthcheck

This is to make more consistent with other non-supported options.

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
2018-10-24 11:49:56 +01:00
..
__init__.py
_docker.py Fixup removed and deprecated modules 2018-08-24 15:37:13 -07:00
docker_container.py Add Support of healthcheck in docker_container module (#46772) 2018-10-24 11:49:56 +01:00
docker_image.py docker_image: allow to delete image by ID (#47393) 2018-10-23 07:52:36 +01:00
docker_image_facts.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_login.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_network.py Adding "internal" option to "docker_network" module (#35370) 2018-10-23 07:49:26 +01:00
docker_secret.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_service.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_stack.py New module: add docker_stack module (clound/docker/docker_stack) (#24588) 2018-09-18 09:54:44 +01:00
docker_swarm.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_swarm_service.py docker_* modules: unify docker module version checks (#47046) 2018-10-18 10:51:58 +01:00
docker_volume.py Fix option change detection / force support for docker_volume. (#47390) 2018-10-23 07:48:09 +01:00