aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/systemd_depend_mount/handlers/service.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/systemd_depend_mount/handlers/service.yml')
-rw-r--r--roles/systemd_depend_mount/handlers/service.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/systemd_depend_mount/handlers/service.yml b/roles/systemd_depend_mount/handlers/service.yml
new file mode 100644
index 0000000..10ead91
--- /dev/null
+++ b/roles/systemd_depend_mount/handlers/service.yml
@@ -0,0 +1,6 @@
+- name: 'Restart {{ service }}'
+ become: true
+ ansible.builtin.systemd_service:
+ name: '{{ service }}'
+ state: restarted
+ when: service in ansible_facts.services