You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following configuration, this works on ansible 2.9 (and follows the documentation).
community.general.docker_container:
healthcheck:
test: ["NONE"]
comparisons:
'*': strict
However, on ansible 2.10.5 this will cause the container to always be restarted.
Running with --check --diff I get the following output:
I attempted two other configurations:
healthcheck: {}
and:
healthcheck:
test: []
However, then I get this warning:
[WARNING]: healthcheck is ignored when test is not specified.
I can 'fix' this by simply ignoring the healthcheck:
healthcheck:
test: ["NONE"]
comparisons:
healthcheck: ignore
'*': strict
But I want to explicitly not have a healthcheck (so it doesn't quite work). It seems that something has changed between ansible 2.9 and ansible 2.10 here.
Summary
I use the following configuration, this works on ansible 2.9 (and follows the documentation).
community.general.docker_container:
healthcheck:
test: ["NONE"]
comparisons:
'*': strict
However, on ansible 2.10.5 this will cause the container to always be restarted.
Running with --check --diff I get the following output:
I attempted two other configurations:
healthcheck: {}
and:
healthcheck:
test: []
However, then I get this warning:
[WARNING]: healthcheck is ignored when test is not specified.
I can 'fix' this by simply ignoring the healthcheck:
healthcheck:
test: ["NONE"]
comparisons:
healthcheck: ignore
'*': strict
But I want to explicitly not have a healthcheck (so it doesn't quite work). It seems that something has changed between ansible 2.9 and ansible 2.10 here.
Issue Type
Bug Report
Component Name
community.general.docker_container
Ansible Version
The text was updated successfully, but these errors were encountered: