From 003c4d40b0900c025192ba8e6332f7c0e5cd8a12 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 31 Aug 2023 23:13:51 +0200 Subject: docker: factor out service restart as a handler --- roles/docker/handlers/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/docker/handlers/main.yml (limited to 'roles/docker/handlers') 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 -- cgit v1.2.3