community.general/lib/ansible
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
..
cli Adoc fixes (#47137) 2018-10-17 10:48:24 -05:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Add configuration to override location of ansible-connection (#46128) 2018-10-01 14:29:59 -04:00
errors Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
executor Don't use the task for a cache, return a special cache var (#47243) 2018-10-18 15:25:43 -05:00
galaxy ansible-galaxy: fix searching with unicode 2018-10-18 14:59:03 -04:00
inventory better information for user from inventory plugins (#46766) 2018-10-12 11:27:29 -04:00
module_utils WinRM/PSRP: Ensure shell returns UTF-8 output (#47404) 2018-10-24 10:40:54 +10:00
modules Add Support of healthcheck in docker_container module (#46772) 2018-10-24 11:49:56 +01:00
parsing An earlier optimization of ansible-doc -l caused failures. (#47012) 2018-10-17 11:15:59 -04:00
playbook Ensure we don't overwrite roles from include/import_role when loading the play (#47512) 2018-10-23 11:08:48 -05:00
plugins psrp - fix unicode handling in Python 2 (#47461) 2018-10-24 05:37:05 +10:00
template Do not strip new lines in native jinja (#46751) 2018-10-19 00:14:43 +02:00
utils Add new module ali_instance (#36898) 2018-10-23 13:02:21 -05:00
vars Don't use the task for a cache, return a special cache var (#47243) 2018-10-18 15:25:43 -05:00
__init__.py
constants.py cisco firepower : Make API endpoints configurable via hostvars (#44952) 2018-08-31 18:38:16 +05:30
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00