From e7c9f4fa05a8333d3ebb5291e39a6362b63182c1 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 14 Apr 2024 18:30:40 -0500 Subject: [PATCH] docker: add handlers --- roles/docker/handlers/main.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/docker/handlers/main.yaml diff --git a/roles/docker/handlers/main.yaml b/roles/docker/handlers/main.yaml new file mode 100644 index 0000000..a038dd7 --- /dev/null +++ b/roles/docker/handlers/main.yaml @@ -0,0 +1,12 @@ +--- +- name: reload docker + ansible.builtin.service: + name: "{{ docker_service_name | default('docker') }}" + state: reloaded + +- name: restart docker + ansible.builtin.service: + name: "{{ docker_service_name | default('docker') }}" + state: restarted + listen: + - restart nftables