roles: prometheus: Add alertmanager configuration
This commit is contained in:
@@ -20,6 +20,14 @@
|
||||
notify:
|
||||
- restart prometheus
|
||||
|
||||
- name: Add alertmanager configuration
|
||||
tags: alertmanager-configure
|
||||
ansible.builtin.template:
|
||||
src: alertmanager.yml.j2
|
||||
dest: '{{ alertmanager_config }}'
|
||||
notify:
|
||||
- restart alertmanager
|
||||
|
||||
- name: Create folder for rules definition
|
||||
ansible.builtin.file:
|
||||
path: /etc/prometheus/rules
|
||||
|
||||
Reference in New Issue
Block a user