community.general.mail (8.5.0) — callback

Sends failure events via email

Authors: Dag Wieers (@dagwieers)

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 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

message_id_domain:
    description:
    - The domain name to use for the L(Message-ID header, https://en.wikipedia.org/wiki/Message-ID).
    - The default is the hostname of the control node.
    ini:
    - key: message_id_domain
      section: callback_mail
    type: str
    version_added: 8.2.0
    version_added_collection: community.general