mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Remove deprecated example (#19161)
This commit is contained in:
parent
b02491ba70
commit
b42cda4dd2
1 changed files with 5 additions and 13 deletions
|
@ -35,7 +35,7 @@ options:
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- Slack (sub)domain for your environment without protocol. (i.e.
|
- Slack (sub)domain for your environment without protocol. (i.e.
|
||||||
C(future500.slack.com)) In 1.8 and beyond, this is deprecated and may
|
C(example.slack.com)) In 1.8 and beyond, this is deprecated and may
|
||||||
be ignored. See token documentation for information.
|
be ignored. See token documentation for information.
|
||||||
required: false
|
required: false
|
||||||
default: None
|
default: None
|
||||||
|
@ -120,14 +120,13 @@ options:
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
- name: Send notification message via Slack
|
- name: Send notification message via Slack
|
||||||
local_action:
|
slack:
|
||||||
module: slack
|
|
||||||
token: thetoken/generatedby/slack
|
token: thetoken/generatedby/slack
|
||||||
msg: '{{ inventory_hostname }} completed'
|
msg: '{{ inventory_hostname }} completed'
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Send notification message via Slack all options
|
- name: Send notification message via Slack all options
|
||||||
local_action:
|
slack:
|
||||||
module: slack
|
|
||||||
token: thetoken/generatedby/slack
|
token: thetoken/generatedby/slack
|
||||||
msg: '{{ inventory_hostname }} completed'
|
msg: '{{ inventory_hostname }} completed'
|
||||||
channel: #ansible
|
channel: #ansible
|
||||||
|
@ -135,6 +134,7 @@ EXAMPLES = """
|
||||||
icon_url: http://www.example.com/some-image-file.png
|
icon_url: http://www.example.com/some-image-file.png
|
||||||
link_names: 0
|
link_names: 0
|
||||||
parse: 'none'
|
parse: 'none'
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in Slack
|
- name: insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in Slack
|
||||||
slack:
|
slack:
|
||||||
|
@ -158,14 +158,6 @@ EXAMPLES = """
|
||||||
- title: System B
|
- title: System B
|
||||||
value: 'load average: 5,16, 4,64, 2,43'
|
value: 'load average: 5,16, 4,64, 2,43'
|
||||||
short: True
|
short: True
|
||||||
|
|
||||||
- name: Send notification message via Slack (deprecated API using domain)
|
|
||||||
local_action:
|
|
||||||
module: slack
|
|
||||||
domain: example.slack.com
|
|
||||||
token: thetokengeneratedbyslack
|
|
||||||
msg: '{{ inventory_hostname }} completed'
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
OLD_SLACK_INCOMING_WEBHOOK = 'https://%s/services/hooks/incoming-webhook?token=%s'
|
OLD_SLACK_INCOMING_WEBHOOK = 'https://%s/services/hooks/incoming-webhook?token=%s'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue