mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
Updating example to match test
This commit is contained in:
committed by
beeankha
parent
eb4db4ed43
commit
b4cde80fa9
@@ -226,7 +226,7 @@ extends_documentation_fragment: awx.awx.auth
|
|||||||
|
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Add Slack notification
|
- name: Add Slack notification with custom messages
|
||||||
tower_notification:
|
tower_notification:
|
||||||
name: slack notification
|
name: slack notification
|
||||||
organization: Default
|
organization: Default
|
||||||
@@ -234,14 +234,6 @@ EXAMPLES = '''
|
|||||||
channels:
|
channels:
|
||||||
- general
|
- general
|
||||||
token: cefda9e2be1f21d11cdd9452f5b7f97fda977f42
|
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:
|
messages:
|
||||||
started:
|
started:
|
||||||
message: "{{ '{{' }} job_friendly_name {{' }}' }} {{ '{{' }} job.id {{' }}' }} started"
|
message: "{{ '{{' }} job_friendly_name {{' }}' }} {{ '{{' }} job.id {{' }}' }} started"
|
||||||
@@ -249,6 +241,7 @@ EXAMPLES = '''
|
|||||||
message: "{{ '{{' }} job_friendly_name {{ '}}' }} completed in {{ '{{' }} job.elapsed {{ '}}' }} seconds"
|
message: "{{ '{{' }} job_friendly_name {{ '}}' }} completed in {{ '{{' }} job.elapsed {{ '}}' }} seconds"
|
||||||
error:
|
error:
|
||||||
message: "{{ '{{' }} job_friendly_name {{ '}}' }} FAILED! Please look at {{ '{{' }} job.url {{ '}}' }}"
|
message: "{{ '{{' }} job_friendly_name {{ '}}' }} FAILED! Please look at {{ '{{' }} job.url {{ '}}' }}"
|
||||||
|
state: present
|
||||||
tower_config_file: "~/tower_cli.cfg"
|
tower_config_file: "~/tower_cli.cfg"
|
||||||
|
|
||||||
- name: Add webhook notification
|
- name: Add webhook notification
|
||||||
|
|||||||
Reference in New Issue
Block a user