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: Listen for events on a webhook | |
hosts: all | |
sources: | |
- ansible.eda.webhook: | |
host: 0.0.0.0 | |
port: 5000 |
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 | |
playbook/switch_backup.yml | |
--- | |
- name: Backup Switch | |
hosts: "{{ ansible_eda.event.switch_devices }}" | |
gather_facts: false | |
connection: httpapi | |
vars: | |
ansible_httpapi_port: 443 |
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: Regex Processing for hostnames | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
eda_input: "{{ ansible_eda.event.payload.text }}" # access event payload | |
regex_pattern: '\b(\w+\.mydomain\.com)\b' # can supply via vars.yml |
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: Listen for events on a webhook | |
hosts: all | |
sources: | |
- ansible.eda.webhook: | |
host: 0.0.0.0 | |
port: 5000 |
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' |
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: Port State Event from switches | |
hosts: all | |
sources: | |
- ansible.eda.kafka: | |
host: broker | |
port: 9092 | |
topic: network |
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: Port State Event from switches | |
hosts: all | |
sources: | |
- ansible.eda.kafka: | |
host: broker | |
port: 9092 | |
topic: network |