added verify send mail
This commit is contained in:
parent
c7a1d8345a
commit
1080c68adf
|
@ -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
|
Loading…
Reference in New Issue