community.general/lib/ansible/modules
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
..
cloud Add Support of healthcheck in docker_container module (#46772) 2018-10-24 11:49:56 +01:00
clustering Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
commands Add helper function to return helpful import error msg (#47409) 2018-10-24 07:21:36 +10:00
crypto openss: fix various test and Python 3 issues (#47188) 2018-10-18 05:29:18 +10:00
database Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
files Update documentation for marker (#47292) 2018-10-19 14:31:03 -04:00
identity update cyberark metadata to certified (#46978) 2018-10-12 13:54:48 -05:00
inventory Fix typo in group_by module (#41627) 2018-06-18 15:33:08 +05:30
messaging rabbitmq_plugin: refactor logic (#46597) 2018-10-21 16:14:25 -04:00
monitoring merge conflict (#25235) 2018-10-08 18:08:55 -04:00
net_tools fix error checking if netns exists (#47397) 2018-10-22 13:58:48 -04:00
network Fix nxos_ospf_vrf module auto-cost idempotency and module check mode (#47190) 2018-10-23 14:28:24 +05:30
notification Add matrix notification module (#45823) 2018-10-24 08:54:38 +01:00
packaging dnf properly gpg check local packages based on param (#47455) 2018-10-23 11:41:27 -05:00
remote_management change UCS modules to certified (#46848) 2018-10-12 10:35:52 -05:00
source_control Enable additional pylint rules and resolve issues found. (#47221) 2018-10-18 13:38:08 -07:00
storage Add hard_limit support to Pure Strage FlashBlade filesystem module (#43987) 2018-10-23 19:03:17 -04:00
system Fix python3 problem in user module cve fix 2018-10-22 18:31:57 -07:00
utilities refresh_inventory doc typo (#47402) 2018-10-22 07:59:24 +10:00
web_infrastructure adding additional example and clarification (#47224) 2018-10-18 16:21:35 -04:00
windows win_domain: Add missing functionality (#46552) 2018-10-19 13:18:52 +10:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00