aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handlers/main.yml3
-rw-r--r--tasks/main.yml8
2 files changed, 11 insertions, 0 deletions
diff --git a/handlers/main.yml b/handlers/main.yml
index 92da673..41d0044 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -1,2 +1,5 @@
---
# handlers file for teamspeak
+
+- name: reload systemd
+ command: systemctl daemon-reload
diff --git a/tasks/main.yml b/tasks/main.yml
index b2a9458..f23906b 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -79,6 +79,14 @@
mode: 0644
owner: root
group: root
+ notify:
+ - reload systemd
+ tags:
+ - teamspeak
+
+# Perform the "reload systemd" handler now.
+# Before we start using the new/changed .service file.
+- meta: flush_handlers
tags:
- teamspeak