--- a/prometheus/server/tasks/main.yaml Sun Feb 09 13:17:16 2020 -0600
+++ b/prometheus/server/tasks/main.yaml Sun Feb 09 20:34:46 2020 -0600
@@ -10,10 +10,13 @@
- name: install prometheus and grafana
become: yes
- apt: name="{{item}}" state="latest"
- with_items:
- - "prometheus"
- - "grafana"
+ apt: name="{{prometheus_server_apt_packages}}" state="latest"
-# /etc/prometheus/prometheus.yml
+- name: configure prometheus
+ become: yes
+ template:
+ src: "{{prometheus_server_conf}}"
+ dest: "/etc/prometheus/prometheus.yml"
+ notify: restart prometheus service
+
# /etc/grafana/grafana.ini