mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-20 03:40:22 -07:00
Tidy up validate-modules ignores for notification modules (#1229)
* fixed validation-modules for plugins/modules/notification/bearychat.py * fixed validation-modules for plugins/modules/notification/campfire.py * fixed validation-modules for plugins/modules/notification/catapult.py * fixed validation-modules for plugins/modules/notification/flowdock.py * fixed validation-modules for plugins/modules/notification/grove.py * fixed validation-modules for plugins/modules/notification/hipchat.py * fixed validation-modules for plugins/modules/notification/irc.py * fixed validation-modules for plugins/modules/notification/jabber.py * fixed validation-modules for plugins/modules/notification/logentries_msg.py * fixed validation-modules for plugins/modules/notification/mail.py * fixed validation-modules for plugins/modules/notification/matrix.py * fixed validation-modules for plugins/modules/notification/mattermost.py * fixed validation-modules for plugins/modules/notification/mqtt.py * fixed validation-modules for plugins/modules/notification/nexmo.py * fixed validation-modules for plugins/modules/notification/office_365_connector_card.py * fixed some docs issues in plugins/modules/notification/pushbullet.py, but cannot remove the ignore lines yet * fixed validation-modules for plugins/modules/notification/pushover.py * fixed some docs issues in plugins/modules/notification/rocketchat.py, but cannot remove all ignore lines yet * fixed validation-modules for plugins/modules/notification/say.py * fixed validation-modules for plugins/modules/notification/sendgrid.py * fixed validation-modules for plugins/modules/notification/slack.py * fixed validation-modules for plugins/modules/notification/syslogger.py * fixed validation-modules for plugins/modules/notification/telegram.py * fixed validation-modules for plugins/modules/notification/twilio.py * fixed validation-modules for plugins/modules/notification/typetalk.py * Enabling validation-modules for modules in: notification * removed naughty trailing space
This commit is contained in:
parent
890ff574c3
commit
24f780ec9a
28 changed files with 187 additions and 154 deletions
|
@ -22,11 +22,13 @@ description:
|
|||
author: "Ramon de la Fuente (@ramondelafuente)"
|
||||
options:
|
||||
domain:
|
||||
type: str
|
||||
description:
|
||||
- Slack (sub)domain for your environment without protocol. (i.e.
|
||||
C(example.slack.com)) In 1.8 and beyond, this is deprecated and may
|
||||
be ignored. See token documentation for information.
|
||||
token:
|
||||
type: str
|
||||
description:
|
||||
- Slack integration token. This authenticates you to the slack service.
|
||||
Make sure to use the correct type of token, depending on what method you use.
|
||||
|
@ -50,11 +52,13 @@ options:
|
|||
See Slack's documentation (U(https://api.slack.com/docs/token-types)) for more information."
|
||||
required: true
|
||||
msg:
|
||||
type: str
|
||||
description:
|
||||
- Message to send. Note that the module does not handle escaping characters.
|
||||
Plain-text angle brackets and ampersands should be converted to HTML entities (e.g. & to &) before sending.
|
||||
See Slack's documentation (U(https://api.slack.com/docs/message-formatting)) for more.
|
||||
channel:
|
||||
type: str
|
||||
description:
|
||||
- Channel to send the message to. If absent, the message goes to the channel selected for the I(token).
|
||||
thread_id:
|
||||
|
@ -68,17 +72,22 @@ options:
|
|||
type: str
|
||||
version_added: 1.2.0
|
||||
username:
|
||||
type: str
|
||||
description:
|
||||
- This is the sender of the message.
|
||||
default: "Ansible"
|
||||
icon_url:
|
||||
type: str
|
||||
description:
|
||||
- Url for the message sender's icon (default C(https://www.ansible.com/favicon.ico))
|
||||
default: https://www.ansible.com/favicon.ico
|
||||
icon_emoji:
|
||||
type: str
|
||||
description:
|
||||
- Emoji for the message sender. See Slack documentation for options.
|
||||
(if I(icon_emoji) is set, I(icon_url) will not be used)
|
||||
link_names:
|
||||
type: int
|
||||
description:
|
||||
- Automatically create links for channels and usernames in I(msg).
|
||||
default: 1
|
||||
|
@ -86,6 +95,7 @@ options:
|
|||
- 1
|
||||
- 0
|
||||
parse:
|
||||
type: str
|
||||
description:
|
||||
- Setting for the message parser at Slack
|
||||
choices:
|
||||
|
@ -98,12 +108,14 @@ options:
|
|||
type: bool
|
||||
default: 'yes'
|
||||
color:
|
||||
type: str
|
||||
description:
|
||||
- Allow text to use default colors - use the default of 'normal' to not send a custom color bar at the start of the message.
|
||||
- Allowed values for color can be one of 'normal', 'good', 'warning', 'danger', any valid 3 digit or 6 digit hex color value.
|
||||
- Specifying value in hex is supported since Ansible 2.8.
|
||||
default: 'normal'
|
||||
attachments:
|
||||
type: list
|
||||
description:
|
||||
- Define a list of attachments. This list mirrors the Slack JSON API.
|
||||
- For more information, see U(https://api.slack.com/docs/attachments).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue