Test sending message with bot user.

This commit is contained in:
2022-07-19 09:25:36 +02:00
parent 9dc27025b2
commit c8469d17e6

View File

@@ -59,12 +59,16 @@
- name: Inform Mattermost about success
uri:
url: "{{ mattermost_url }}"
url: https://cs-mm.ddnss.de/api/v4/posts
method: POST
body_format: json
body:
username: "{{ mattermost_user }}"
channel_id: gub5buudpffxjf6fc1abkas8jo
text: "{{ ansible_date_time.date }} {{ ansible_date_time.time }} (info): Playbook ran successful ({{ ansible_play_name }})"
headers:
Content-Type: application/json
Authorization: Bearer 6ej3xr7cuinyfrzkbn64i85zco
rescue:
- name: Umount nas volume