diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml new file mode 100644 index 0000000..d21e8ad --- /dev/null +++ b/group_vars/all/main.yml @@ -0,0 +1,2 @@ +--- +mail_host: mail.johnnynator.de diff --git a/roles/gitea/templates/gitea.conf.j2 b/roles/gitea/templates/gitea.conf.j2 index a2727f7..72a27ab 100644 --- a/roles/gitea/templates/gitea.conf.j2 +++ b/roles/gitea/templates/gitea.conf.j2 @@ -36,14 +36,14 @@ LEVEL = Info [mailer] ENABLED = true PROTOCOL = smtps -SMTP_ADDR = mail.johnnynator.de +SMTP_ADDR = {{ mail_host }} SMTP_PORT = 465 FROM = "Gitea <{{gitea_mail }}>" USER = {{ gitea_mail }} PASSWD = {{ gitea_mail_password }} [email.incoming] ENABLED = true -HOST = mail.johnnynator.de +HOST = {{ mail_host }} PORT = 993 USERNAME = {{ gitea_mail }} PASSWORD = {{ gitea_mail_password }}