Files
computer-playbook/roles/web-app-keycloak/templates/import/smtp_server.json.j2

17 lines
584 B
Django/Jinja

"smtpServer": {
{% set email = lookup('email', application_id) %}
{% if email.enabled | bool %}
"password": "{{ email.password }}",
"replyToDisplayName": "",
"starttls": "{{ email.start_tls | lower }}",
"auth": "true",
"port": "{{ email.port }}",
"replyTo": "",
"host": "{{ email.host }}",
"from": "{{ email['from'] }}",
"fromDisplayName": "Authentication System ({{ DOMAIN_PRIMARY | lower }})",
"envelopeFrom": "",
"ssl": "{{ (email.tls and not email.start_tls) | bool | string | lower }}",
"user": "{{ email.username }}"
{% endif %}
}