Commit Graph

7 Commits (2274568008cd025d2be5e84c46a9f93be284b7df)

Author SHA1 Message Date
Matt Martz 8bd5757720 Fix up modules that have python24 syntax error 2016-12-08 11:32:36 -05:00
Will f6de67e17f Allow sending direct messages with slack module 2016-12-08 11:32:35 -05:00
Brian Coca 8a785700c3 added version added to new color option 2016-12-08 11:32:29 -05:00
Phillip Holmes 66aa605367 added color bar option to Slack module
This update will allow people to add a color bar at the front of a
Slack notification using the default 3 colors by name Slack specify
(good, warning, danger).

If no color is specified, or the default is used (normal) then no bar
will be added.

Description and example also added in this update.

Color bars are added by using the attachments json object inside the
payload - this is a very simplistic implementation as using custom
colors or adding titles or other formatting are not included in this
update and if needed I’m sure somebody else can spend the time to add
them later…

Tested with ansible 1.7
2016-12-08 11:32:29 -05:00
Toshio Kuratomi e00462712d The old slack webhook API still works. It's just deprecated by slack.
Analyze the given token and use the old webhook format if the token
is old style and use the new format if the token is new style.  Make
domain optional with new-style tokens.

Fixes #157
2016-12-08 11:32:27 -05:00
Toby Evans 7685d60c58 Update the webhook url
This change fixes the 404 seen with the current version.

fixes #100
2016-12-08 11:32:20 -05:00
Michael DeHaan 5879c503bb File extensions! 2016-12-08 11:32:18 -05:00