Created
August 22, 2023 09:25
-
-
Save nmartins0611/0d355fcff2b6bea316f14e7e06b28664 to your computer and use it in GitHub Desktop.
Basic Notification to MatterMost
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
## example | |
--- | |
- name: Send notification message via Mattermost | |
community.general.mattermost: | |
url: ## Add URL | |
api_key: ## Add Token | |
attachments: | |
- text: "!!!!!! ALERT !!!!!!" | |
color: '#ff00dd' | |
title: BGP ERROR | |
fields: | |
- 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 {{ ansible_eda.event.name }}" | |
short: true | |
delegate_to: localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment