This commit adds comprehensive email configuration for both Authentik and Nextcloud, integrated with Mailgun SMTP credentials. Features Added: - Mailgun role integration in deploy.yml playbook - Authentik email configuration display task - Nextcloud SMTP configuration with admin email setup - Infrastructure prerequisite checking in deploy playbook Changes: - deploy.yml: Added Mailgun role and base infrastructure check - authentik/tasks/email.yml: Display email configuration status - authentik/tasks/main.yml: Include email task when credentials exist - nextcloud/tasks/email.yml: Configure SMTP and admin email - nextcloud/tasks/main.yml: Include email task when credentials exist This ensures: ✓ Mailgun SMTP credentials are created/loaded automatically ✓ Authentik email works via docker-compose environment variables ✓ Nextcloud SMTP is configured via occ commands ✓ Admin email address is set automatically ✓ Email works immediately on new deployments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
802 B
YAML
34 lines
802 B
YAML
---
|
|
# Main tasks for Nextcloud deployment
|
|
|
|
- name: Include Docker deployment tasks
|
|
include_tasks: docker.yml
|
|
tags:
|
|
- nextcloud
|
|
- docker
|
|
|
|
- name: Include installation tasks
|
|
include_tasks: install.yml
|
|
tags:
|
|
- nextcloud
|
|
- install
|
|
|
|
- name: Include OIDC configuration tasks
|
|
include_tasks: oidc.yml
|
|
when: nextcloud_oidc_enabled | default(true)
|
|
tags:
|
|
- nextcloud
|
|
- oidc
|
|
|
|
- name: Include apps installation and configuration
|
|
include_tasks: apps.yml
|
|
tags:
|
|
- nextcloud
|
|
- apps
|
|
|
|
- name: Include email configuration
|
|
include_tasks: email.yml
|
|
when: mailgun_smtp_user is defined or (client_secrets.mailgun_smtp_user is defined and client_secrets.mailgun_smtp_user != "" and "PLACEHOLDER" not in client_secrets.mailgun_smtp_user)
|
|
tags:
|
|
- nextcloud
|
|
- email
|