add: smtp/mail configuration keycloak master realm

This commit is contained in:
2023-03-14 17:59:55 +01:00
parent d2227d485f
commit e3953b1810
2 changed files with 28 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ nsca_password: HISTORY_PURGED_SECRET
RSYSLOG_SERVER: internal.monitoring.atlantishq.de
influxdb_telegraf_password: HISTORY_PURGED_SECRET
smtp_internal_host: 192.168.122.101
smtp_service_user: noreply
smtp_service_pass: HISTORY_PURGED_SECRET
# overwritten in monitoring master group var
monitoring_master: false

View File

@@ -43,6 +43,7 @@
until: result.status and result.json.status == "UP"
retries: 10
delay: 20
check_mode: false
- name: Create Keycloak Clients
local_action:
@@ -69,3 +70,26 @@
frontchannel_logout: False
protocol: openid-connect
with_items: "{{ keycloak_clients.keys() | list }}"
- name: Update master realm settings
community.general.keycloak_realm:
auth_client_id: admin-cli
auth_keycloak_url: https://keycloak.atlantishq.de/
auth_realm: master
auth_username: admin
auth_password: "{{ keycloak_admin_password }}"
state: present
realm: master
smtpServer :
password : "{{ smtp_service_pass }}"
replyToDisplayName: ""
starttls: "false"
auth: "true"
replyTo: ""
envelopeFrom: ""
from: "{{ smtp_service_user }}@atlantishq.de"
fromDisplayName: ""
host: "{{ smtp_internal_host }}"
port: "25"
ssl: "false"
user: "{{ smtp_service_user }}"