mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Adding field change to readme and example and test of custom messages
This commit is contained in:
committed by
beeankha
parent
649aafb454
commit
eb4db4ed43
@@ -66,7 +66,7 @@
|
||||
# The 27 can be count from the size of the OLD_INPUT_NAMES list in the module
|
||||
- result['deprecations'] | length() == 27
|
||||
|
||||
- name: Create Slack notification
|
||||
- name: Create Slack notification with custom messages
|
||||
tower_notification:
|
||||
name: "{{ slack_not }}"
|
||||
organization: Default
|
||||
@@ -74,6 +74,13 @@
|
||||
token: a_token
|
||||
channels:
|
||||
- general
|
||||
messages:
|
||||
started:
|
||||
message: "{{ '{{' }} job_friendly_name {{' }}' }} {{ '{{' }} job.id {{' }}' }} started"
|
||||
success:
|
||||
message: "{{ '{{' }} job_friendly_name {{ '}}' }} completed in {{ '{{' }} job.elapsed {{ '}}' }} seconds"
|
||||
error:
|
||||
message: "{{ '{{' }} job_friendly_name {{ '}}' }} FAILED! Please look at {{ '{{' }} job.url {{ '}}' }}"
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user