Created
May 9, 2023 06:19
-
-
Save NilashishC/8546cd5b7b597e418f28e25075c2880c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Report incident to ServiceNow | |
hosts: clus-mdt-leaf1 | |
sources: | |
- ansible.eda.kafka: | |
host: 172.22.225.11 | |
topic: eda | |
port: 9092 | |
rules: | |
- name: Check route count | |
condition: | |
all: | |
- event.fields.routeCount < 100 | |
- event.tags.vrfName == "prod" | |
actions: | |
- run_playbook: | |
name: report_event.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment