feat: only reload dokcer service if install_docker_start_service is enabled
All checks were successful
test / Linting (push) Successful in 34s
test / Molecule tests (default, debian11) (push) Successful in 2m11s
test / Molecule tests (default, ubuntu2004) (push) Successful in 2m11s
test / Molecule tests (default, debian12) (push) Successful in 2m15s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m45s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m55s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 2m3s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m54s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 2m29s

This avoid trying to reload docker if the role is set to not manage docker lifecycle (prevents unexpected reloads). This also fix the role not working in dokcer container build (with packer provisioner), where docker service cannot be reloaded during build.
This commit is contained in:
Bertrand Lanson 2023-11-05 20:19:48 +00:00
parent db69250caf
commit 16afb0ab86

View File

@ -11,3 +11,4 @@
name: docker
state: reloaded
listen: "systemctl-reload-docker"
when: install_docker_start_service