Add welcome email
This commit is contained in:
parent
9478748add
commit
fa58a989e8
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue