add alertmanager role

This commit is contained in:
uumas
2023-12-21 01:33:54 +02:00
parent c5a54827d4
commit b6e379a3f2
5 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
- name: Prometheus alertmanager container
include_role:
name: container
vars:
docker_service: alertmanager
docker_image: prom/alertmanager
reverse_proxy_type: none
docker_command:
- "--config.file=/etc/alertmanager/alertmanager.yml"
- "--storage.path=/alertmanager"
- "--data.retention={{ alertmanager_storage_retention }}"
docker_mounts:
- name: data
path: /alertmanager
- template: alertmanager.yml
path: /etc/alertmanager/alertmanager.yml