Skip to content

Instantly share code, notes, and snippets.

@NilashishC
Created May 9, 2023 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NilashishC/8546cd5b7b597e418f28e25075c2880c to your computer and use it in GitHub Desktop.
Save NilashishC/8546cd5b7b597e418f28e25075c2880c to your computer and use it in GitHub Desktop.
---
- 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