aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/docker/handlers/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 23:13:51 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 23:17:51 +0200
commit003c4d40b0900c025192ba8e6332f7c0e5cd8a12 (patch)
treee9f5a936604257a9139dac7c967cdcc53461cce0 /roles/docker/handlers/main.yml
parentv0.0.24 (diff)
downloadinfra-ansible-003c4d40b0900c025192ba8e6332f7c0e5cd8a12.tar.gz
infra-ansible-003c4d40b0900c025192ba8e6332f7c0e5cd8a12.zip
docker: factor out service restart as a handler
Diffstat (limited to 'roles/docker/handlers/main.yml')
-rw-r--r--roles/docker/handlers/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/docker/handlers/main.yml b/roles/docker/handlers/main.yml
new file mode 100644
index 0000000..742a98c
--- /dev/null
+++ b/roles/docker/handlers/main.yml
@@ -0,0 +1,7 @@
+- name: Restart Docker
+ become: true
+ ansible.builtin.systemd_service:
+ daemon_reload: true
+ name: docker
+ state: restarted
+ listen: docker_restart