slack
Collection: community.general
Full Name: parallax.community.general.slack
Aliases: community.general.slack, slack
Synopsis
Manage slack
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| token | string | yes | Slack API token or webhook URL | |
| msg | string | yes | Message text to send | |
| channel | string | #general | Channel to post the message to | |
| username | string | Ansible | Username to post as | |
| icon_url | string | URL to an image to use as the icon | ||
| icon_emoji | string | Emoji to use as the icon (e.g. :robot_face:) | ||
| parse | string | none | Parse mode for the message (none, full) | |
| validate_certs | bool | true | Validate SSL certificates | |
| color | string | normal | Color of the message attachment bar | |
| attachments | string | JSON-formatted attachments for the message | ||
| thread_id | string | Thread timestamp to reply to |
Example
- name: Example slack task
slack:
token: <your_token>
msg: <your_msg>