summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorJohn Westcott IV <john.westcott.iv@redhat.com>2020-03-31 17:50:07 +0200
committerbeeankha <beeankha@gmail.com>2020-04-02 15:14:49 +0200
commitb4cde80fa976fac5a8c103a25d80ee4b964bff64 (patch)
tree4426b5f0617692690f4f92b8989146fa5f4118ac /awx_collection
parentAdding field change to readme and example and test of custom messages (diff)
downloadawx-b4cde80fa976fac5a8c103a25d80ee4b964bff64.tar.xz
awx-b4cde80fa976fac5a8c103a25d80ee4b964bff64.zip
Updating example to match test
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/tower_notification.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/awx_collection/plugins/modules/tower_notification.py b/awx_collection/plugins/modules/tower_notification.py
index 29fef09550..2fb83832c1 100644
--- a/awx_collection/plugins/modules/tower_notification.py
+++ b/awx_collection/plugins/modules/tower_notification.py
@@ -226,7 +226,7 @@ extends_documentation_fragment: awx.awx.auth
EXAMPLES = '''
-- name: Add Slack notification
+- name: Add Slack notification with custom messages
tower_notification:
name: slack notification
organization: Default
@@ -234,14 +234,6 @@ EXAMPLES = '''
channels:
- general
token: cefda9e2be1f21d11cdd9452f5b7f97fda977f42
- state: present
- tower_config_file: "~/tower_cli.cfg"
-
-- name: Add custom messages to our notification
- tower_notification:
- name: slack notification
- notification_type: slack
- organization: Default
messages:
started:
message: "{{ '{{' }} job_friendly_name {{' }}' }} {{ '{{' }} job.id {{' }}' }} started"
@@ -249,6 +241,7 @@ EXAMPLES = '''
message: "{{ '{{' }} job_friendly_name {{ '}}' }} completed in {{ '{{' }} job.elapsed {{ '}}' }} seconds"
error:
message: "{{ '{{' }} job_friendly_name {{ '}}' }} FAILED! Please look at {{ '{{' }} job.url {{ '}}' }}"
+ state: present
tower_config_file: "~/tower_cli.cfg"
- name: Add webhook notification