Add welcome email

This commit is contained in:
Antonio J. Delgado 2022-12-13 17:17:47 +02:00
parent 9478748add
commit fa58a989e8

View file

@ -22,3 +22,13 @@
loop: "{{ dbmail_users }}"
register: result
failed_when: result.rc > 1
- name: Send welcome mail to users to create mailbox
community.general.mail:
subject: "This is your first email {{ item.name }} ({{ item.username }})"
to: "{{ item.username }}"
body: |
"Hello {{ item.name }},
This is your first message for the account {{ item.username }}"
loop: "{{ dbmail_users }}"
delegate_to: localhost