Configure email settings

This commit is contained in:
Sonny Bakker 2021-02-02 21:37:12 +01:00
parent b16f2585c7
commit 377053797d
3 changed files with 20 additions and 7 deletions

View file

@ -31,3 +31,4 @@
- 'vars/main.yml'
- 'vars/network.yml'
- 'vars/postgres.yml'
- 'vars/email.yml'

View file

@ -9,14 +9,14 @@
# Mail Server #
###############
# mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'smtp'
# mail.port: 25
# mail.username: ''
# mail.password: ''
# mail.use-tls: false
mail.backend: 'smtp'
mail.host: '{{ smtp_server }}'
mail.port: {{ smtp_port }}
mail.username: '{{ smtp_username }}'
mail.password: '{{ smtp_password }}'
mail.use-tls: true
# The email address to send on behalf of
# mail.from: 'root@localhost'
mail.from: '{{ smtp_username }}'
# If you'd like to configure email replies, enable this.
# mail.enable-replies: true

12
vars/email.yml Normal file
View file

@ -0,0 +1,12 @@
smtp_server: 'smtp.transip.email'
smtp_port: 465
smtp_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34306430333263396535626334633436623532623536663134656332323239663731343230623035
3631653566646332323639313934313832313830626532330a333061393364656566636131396262
31356439623766326137643030613432623538363861623738366639313662363830313937376532
6538633739623964370a333666333538326261643165346561306165363563623462636663633731
61316633626132623939303962613533303566383531383930343066373830613135343433353734
36323061346564393330366661646333393432313963313266316338646430386337393062393632
313166333737633932306439363139633934
smtp_username: 'sentry@fudiggity.nl'