community.general.mail (6.6.8) — callback

Sends failure events via email

Authors: Dag Wieers (@dagwieers)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 6.6.8

Description

This callback will report failures via email.


Requirements

Inputs

    
cc:
    description:
    - CC'd recipients.
    elements: str
    ini:
    - key: cc
      section: callback_mail
    type: list

to:
    default:
    - root
    description:
    - Mail recipient.
    elements: str
    ini:
    - key: to
      section: callback_mail
    type: list

bcc:
    description:
    - BCC'd recipients.
    elements: str
    ini:
    - key: bcc
      section: callback_mail
    type: list

mta:
    default: localhost
    description:
    - Mail Transfer Agent, server that accepts SMTP.
    env:
    - name: SMTPHOST
    ini:
    - key: smtphost
      section: callback_mail
    type: str

sender:
    description:
    - Mail sender.
    - This is required since community.general 6.0.0.
    ini:
    - key: sender
      section: callback_mail
    required: true
    type: str

mtaport:
    default: 25
    description:
    - Mail Transfer Agent Port.
    - Port at which server SMTP.
    ini:
    - key: smtpport
      section: callback_mail
    type: int