On this page
community.general.slack – Sends play events to a Slack channel
Note
This plugin is part of the community.general collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.slack
.
Synopsis
- This is an ansible callback plugin that sends status updates to a Slack channel during playbook execution.
- Before 2.4 only environment variables were available for configuring this plugin
Requirements
The below requirements are needed on the local controller node that executes this callback.
- whitelist in configuration
- prettytable (python library)
Parameters
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
channel
string
|
Default:
"#ansible"
|
ini entries:
[callback_slack]
env:SLACK_CHANNEL
|
Slack room to post in.
|
username
string
|
Default:
"ansible"
|
ini entries:
[callback_slack]
env:SLACK_USERNAME
|
Username to post as.
|
validate_certs
boolean
|
|
ini entries:
[callback_slack]
env:SLACK_VALIDATE_CERTS
|
validate the SSL certificate of the Slack server. (For HTTPS URLs)
|
webhook_url
string / required
|
ini entries:
[callback_slack]
env:SLACK_WEBHOOK_URL
|
Slack Webhook URL
|
Authors
- Unknown (!UNKNOWN)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/slack_callback.html