aboutsummaryrefslogtreecommitdiff
path: root/tasks/systemd.yml
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-28 21:06:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-28 21:06:36 -0400
commit377df0b6841bf61f128c8b9098cc1bf6d506a5b7 (patch)
tree789bc2d3dc46cf1da0a4c62b8e6f49b1ad7fb83b /tasks/systemd.yml
parent4d82dba8e2ce90364cb899a293c75ba37cbb791f (diff)
downloadprometheus-377df0b6841bf61f128c8b9098cc1bf6d506a5b7.tar.gz
prometheus-377df0b6841bf61f128c8b9098cc1bf6d506a5b7.tar.xz
Update the role, add some more documentation, and a license
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