aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/prometheus/tasks/main.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/ansible/roles/prometheus/tasks/main.yml b/ansible/roles/prometheus/tasks/main.yml
index a4565a1..c8ba53f 100644
--- a/ansible/roles/prometheus/tasks/main.yml
+++ b/ansible/roles/prometheus/tasks/main.yml
@@ -18,7 +18,7 @@
notify:
- Restart the prometheus service
-- name: Configure prometheus
+- name: Deploy prometheus general config
copy:
content: |
# Ansible managed
@@ -32,6 +32,20 @@
notify:
- Reload the prometheus service
+- name: Deploy prometheus web server config
+ copy:
+ content: |
+ # Ansible managed
+ {{ prometheus_web_configuration | to_nice_yaml }}
+ dest: /etc/prometheus/web_config.yml
+ owner: prometheus
+ group: prometheus
+ mode: "0400"
+ tags:
+ - role::prometheus
+ notify:
+ - Reload the prometheus service
+
- name: Configure prometheus rules
copy:
content: |