Test sending message with bot user.
This commit is contained in:
8
nas.yaml
8
nas.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user