community.general.slack (8.5.0) — callback

Sends play events to a Slack channel

Authors: Unknown (!UNKNOWN)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This is an ansible callback plugin that sends status updates to a Slack channel during playbook execution.


Requirements

Inputs

    
channel:
    default: '#ansible'
    description: Slack room to post in.
    env:
    - name: SLACK_CHANNEL
    ini:
    - key: channel
      section: callback_slack

username:
    default: ansible
    description: Username to post as.
    env:
    - name: SLACK_USERNAME
    ini:
    - key: username
      section: callback_slack

webhook_url:
    description: Slack Webhook URL.
    env:
    - name: SLACK_WEBHOOK_URL
    ini:
    - key: webhook_url
      section: callback_slack
    required: true

validate_certs:
    default: true
    description: Validate the SSL certificate of the Slack server for HTTPS URLs.
    env:
    - name: SLACK_VALIDATE_CERTS
    ini:
    - key: validate_certs
      section: callback_slack
    type: bool