Try to inform mattermost about playbook.

This commit is contained in:
2021-11-23 15:19:38 +01:00
parent 846426bf35
commit 3cf350120b

View File

@@ -5,6 +5,8 @@
gather_facts: true
tasks:
- name: Cleanup semaphore
block:
- include_vars: vars/semaphore/variable.yaml
- name: Search for volume's backup directories
@@ -117,3 +119,20 @@
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
loop_control:
label: "{{ item.path }}"
- name: Inform Mattermost about success
uri:
url: https://cs-mm.ddnss.de/hooks/og4ckuqet7fafb8kjuaigzuh7c
method: POST
body_format: json
body:
text: Semaphore ran successful
rescue:
- name: Inform Mattermost about error
uri:
url: https://cs-mm.ddnss.de/hooks/og4ckuqet7fafb8kjuaigzuh7c
method: POST
body_format: json
body:
text: Semaphore ran into error