From b4cde80fa976fac5a8c103a25d80ee4b964bff64 Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Tue, 31 Mar 2020 11:50:07 -0400 Subject: [PATCH] Updating example to match test --- awx_collection/plugins/modules/tower_notification.py | 11 ++--------- 1 file 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