aboutsummaryrefslogtreecommitdiff
path: root/tasks/systemd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/systemd.yml')
-rw-r--r--tasks/systemd.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/systemd.yml b/tasks/systemd.yml
new file mode 100644
index 0000000..031f036
--- /dev/null
+++ b/tasks/systemd.yml
@@ -0,0 +1,9 @@
+- name: Write Systemd Unit
+ template:
+ src: prometheus/systemd.unit
+ dest: /etc/systemd/system/prometheus.service
+- name: 'Enable Prometheus [Systemd]'
+ systemd:
+ enabled: yes
+ daemon_reload: yes
+ name: prometheus