added verify send mail

This commit is contained in:
Ruben Blanco 2023-10-16 08:08:52 +02:00
parent c7a1d8345a
commit 1080c68adf
1 changed files with 16 additions and 0 deletions

View File

@ -76,4 +76,20 @@
value: 'false' value: 'false'
notify: Restart exim4 service notify: Restart exim4 service
# Send mail to verify relay-host
- name: sending mail to verify exim4 config works
mail:
host: smtp.verdnatura.es
port: 465
subject: Verify Ansible playbook deployment exim4
body: Hello , this is an e-mail to verify exim4 config works on {{ ansible_facts['ansible_nodename'] }}
to:
- informatica@verdnatura.es
- rubenb@verdnatura.es
delegate_to: localhost
##
# configure centralized authentication # configure centralized authentication
# Copy
# lineinfile password