update send mail

This commit is contained in:
Ruben Blanco 2023-10-17 11:02:02 +02:00
parent a4b9981127
commit fd0360506f
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@
lineinfile: lineinfile:
path: /tmp/messagefileverify path: /tmp/messagefileverify
line: Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye. line: Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye.
create: yes
# Send mail # Send mail
- name: sending mail to verify exim4 config works - name: sending mail to verify exim4 config works
command: mailx -s "test mail verify exim4 for the host '{{ ansible_nodename }}'.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,davidl@verdnatura.es,juan@verdnatura.es informatica@verdnatura.es < /tmp/messagefileverify command: mailx -s "test mail verify exim4 for the host '{{ ansible_nodename }}'.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,davidl@verdnatura.es,juan@verdnatura.es informatica@verdnatura.es < /tmp/messagefileverify