Skip to content

Commit

Permalink
module guidelines compliency
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondelafuente authored and mattclay committed Dec 8, 2016
1 parent aeb1090 commit 918012a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/ansible/modules/extras/notification/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
short_description: Send Slack notifications
description:
- The M(slack) module sends notifications to U(http://slack.com) via the Incoming WebHook integration
version_added: 1.6
version_added: "1.6"
author: "Ramon de la Fuente (@ramondelafuente)"
options:
domain:
Expand All @@ -33,6 +33,7 @@
C(future500.slack.com)) In 1.8 and beyond, this is deprecated and may
be ignored. See token documentation for information.
required: false
default: None
token:
description:
- Slack integration token. This authenticates you to the slack service.
Expand All @@ -48,15 +49,17 @@
description:
- Message to send.
required: false
default: None
channel:
description:
- Channel to send the message to. If absent, the message goes to the channel selected for the I(token).
required: false
default: None
username:
description:
- This is the sender of the message.
required: false
default: ansible
default: "Ansible"
icon_url:
description:
- Url for the message sender's icon (default C(http://www.ansible.com/favicon.ico))
Expand All @@ -66,6 +69,7 @@
- Emoji for the message sender. See Slack documentation for options.
(if I(icon_emoji) is set, I(icon_url) will not be used)
required: false
default: None
link_names:
description:
- Automatically create links for channels and usernames in I(msg).
Expand All @@ -78,6 +82,7 @@
description:
- Setting for the message parser at Slack
required: false
default: None
choices:
- 'full'
- 'none'
Expand All @@ -91,7 +96,7 @@
- 'yes'
- 'no'
color:
version_added: 2.0
version_added: "2.0"
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
required: false
Expand All @@ -105,6 +110,7 @@
description:
- Define a list of attachments. This list mirrors the Slack JSON API. For more information, see https://api.slack.com/docs/attachments
required: false
default: None
"""

EXAMPLES = """
Expand Down Expand Up @@ -243,4 +249,6 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.urls import *
main()

if __name__ == '__main__':
main()

0 comments on commit 918012a

Please sign in to comment.