Try to inform mattermost about playbook.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user