community.general.slack (0.1.4) — callback

Sends play events to a Slack channel

Authors: unknown

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

Description

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

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