Notifications

Configuring email notifications for playbook and workflow execution events.

Overview

SculptOps can send email notifications when executions complete, fail, or time out. Notifications are configured at the organization level and can be further customized per-user.

SMTP setup

Go to Settings → Notifications → SMTP and fill in your mail server details. You can also set these via environment variables — UI settings take precedence.

FieldEnv variableDescription
HostSMTP_HOSTSMTP server hostname
PortSMTP_PORTUsually 587 (STARTTLS) or 465 (TLS)
Secure (TLS)SMTP_SECUREEnable for port 465
UsernameSMTP_USERSMTP auth username
PasswordSMTP_PASSSMTP auth password (stored encrypted)
From addressSMTP_FROMSender address, e.g. noreply@yourcompany.com

Click Send test email to verify the configuration before saving.

Common SMTP providers

ProviderHostPortSecure
Gmail (App Password)smtp.gmail.com587false
Gmail (SSL)smtp.gmail.com465true
SendGridsmtp.sendgrid.net587false
Mailgunsmtp.mailgun.org587false
AWS SES (eu-west-1)email-smtp.eu-west-1.amazonaws.com587false
Postmarksmtp.postmarkapp.com587false
Mailhog (local dev)localhost1025false
Tip
For Gmail, you must use an App Password (not your account password) if 2FA is enabled. Generate one at myaccount.google.com → Security → App passwords.

Notification events

Admins configure which events trigger notifications under Settings → Notifications → Events:

EventDescription
Execution failedAny playbook or workflow step exits with a non-zero code
Execution timed outExecution killed by the ANSIBLE_EXECUTION_TIMEOUT limit
Execution succeededPlaybook or workflow completes with exit code 0
Schedule missedA scheduled run was skipped due to a previous run still running

Per-user notification preferences

Each user can opt in or out of notifications from their profile under Profile → Notifications. Users can choose:

  • Notify on executions I triggered
  • Notify on all executions in the organization
  • Only notify on failures

Notification email format

text
Subject: [SculptOps] Deploy app — failed (production)

Playbook:    Deploy app
Inventory:   production
Triggered by: alice@example.com
Started:     2025-01-15 10:31:00 UTC
Duration:    2m 14s
Status:      FAILED (exit code 1)

Last 20 lines of output:
  TASK [restart service] *****
  fatal: [web1]: FAILED! => {"msg": "..."}

View full execution: https://your-instance/executions/exec789