Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2023 09:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Basic Notification to MatterMost
## example
- name: Send notification message via Mattermost
url: ## Add URL
api_key: ## Add Token
- text: "!!!!!! ALERT !!!!!!"
color: '#ff00dd'
title: BGP ERROR
- title: Issue
value: "BGP {{ ansible_eda.event.fields.session_state }} Error!"
short: true
- title: Details
value: "Neighbor Address: {{ ansible_eda.event.tags.neighbor_address }} from switch {{ }}"
short: true
delegate_to: localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment