This commit is contained in:
Antonio J. Delgado 2023-01-31 00:19:09 +02:00
parent 7cd115d26d
commit 89d3084b64

View file

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