Add Alertmanager

This commit is contained in:
2024-01-16 14:46:31 -05:00
parent 51709f6ee9
commit c8485bc35b

View File

@@ -0,0 +1,20 @@
---
- name: Listen for Alertmanager events
hosts: all
sources:
- name: Ansible Alertmanager listener
ansible.eda.alertmanager:
port: 9100
host: 0.0.0.0
rules:
- name: Run Template
condition:
all:
- event.payload.data.artifact_url is defined
action:
run_job_template:
name: bab-deploy-application
organization: OYS
job_args:
extra_vars:
artifact_url: "{{ event.payload.data.artifact_url }}"