Merge "docker: Add docker_systemd_reload functionality"

This commit is contained in:
Zuul 2023-03-15 11:44:30 +00:00 committed by Gerrit Code Review
commit 57c6124238
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
features:
- |
Adds ``docker_systemd_reload`` variable (defaults to ``false``),
that changes restart task behaviour to reload docker instead
when set to ``true``.

View File

@ -58,3 +58,6 @@ docker_registry_ca:
# Whether to configure Docker and containerd for Zun.
docker_configure_for_zun: false
containerd_configure_for_zun: "{{ docker_configure_for_zun | bool }}"
# Whether to restart docker systemd unit or reload
docker_systemd_reload: false

View File

@ -10,7 +10,7 @@
- name: Restart docker
systemd:
name: docker
state: restarted
state: "{{ 'reloaded' if docker_systemd_reload | bool else 'restarted' }}"
masked: no
become: True