mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 01:34:36 +01:00
14 lines
333 B
YAML
14 lines
333 B
YAML
---
|
|
- name: notify discord
|
|
hosts: "{{ hosts }}"
|
|
tasks:
|
|
- name: send discord message
|
|
uri:
|
|
url: "your-webhook"
|
|
method: POST
|
|
body_format: json
|
|
body: '{"content": "your-message"}'
|
|
headers:
|
|
Content-Type: application/json
|
|
status_code: 204
|
|
# when: your-condition |