Remove email password from playbook.

This commit is contained in:
2025-04-28 08:21:48 +02:00
parent f704ea3909
commit f2f1591f16

View File

@@ -5,13 +5,16 @@
gather_facts: false gather_facts: false
tasks: tasks:
- name: Include email variables
include_vars: vars/email.yaml
- name: Send Email - name: Send Email
community.general.mail: community.general.mail:
host: mail.steinle-computer.de host: mail.steinle-computer.de
port: 465 port: 465
from: kontakt@steinle-computer.de (Christian Steinle) from: kontakt@steinle-computer.de (Christian Steinle)
username: kontakt@steinle-computer.de username: kontakt@steinle-computer.de
password: lmaa,dw. password: "{{ mail_password }}"
to: "{{ item[1] }}" to: "{{ item[1] }}"
subject: Datenbank Backup subject: Datenbank Backup
body: Backup der Anwendung wurde erstellt. body: Backup der Anwendung wurde erstellt.