diff --git a/roles/forgejo/meta/main.yml b/roles/forgejo/meta/main.yml index 69891c7..c40e638 100644 --- a/roles/forgejo/meta/main.yml +++ b/roles/forgejo/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - role: nginx + - role: opensmtpd diff --git a/roles/forgejo/tasks/main.yml b/roles/forgejo/tasks/main.yml index 69ec569..32152cc 100644 --- a/roles/forgejo/tasks/main.yml +++ b/roles/forgejo/tasks/main.yml @@ -40,6 +40,10 @@ - { section: other, option: SHOW_FOOTER_TEMPLATE_LOAD_TIME, value: 'false' } - { section: cron.update_checker, option: ENABLED, value: 'false' } - { section: security, option: INSTALL_LOCK, value: 'true' } + - { section: mailer, option: ENABLED, value: 'true' } + - { section: mailer, option: PROTOCOL, value: 'sendmail' } + - { section: mailer, option: FROM, value: 'noreply@{{ dns_name }}' } + - { section: mailer, option: SEND_AS_PLAIN_TEXT, value: 'true' } notify: restart forgejo - name: Enable forgejo service