add register and when to exim4
This commit is contained in:
parent
d0c2840ad3
commit
806669f29b
|
@ -92,6 +92,7 @@
|
|||
- regexp: '^dc_localdelivery'
|
||||
line: "dc_localdelivery='{{ dc_localdelivery }}'"
|
||||
notify: restart exim4
|
||||
register: exim4_config
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
@ -154,6 +155,7 @@
|
|||
# Send mail with module shell (shell module accepts pipes "|" , command module dont accept pipes)
|
||||
- name: sending mail to verify exim4 config works
|
||||
shell: echo "Verify send email from host {{ ansible_nodename }}.verdnatura.es with mailx , bye." | mailx -s "test mail verify exim4 for the host {{ ansible_nodename }}.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,juan@verdnatura.es,davidl@verdnatura.es informatica@verdnatura.es
|
||||
when: exim4_config.changed
|
||||
# Delete tmp file /tmp/messagefileverify
|
||||
#- name: delete tmp file /tmp/messagefileverify
|
||||
# file:
|
||||
|
|
Loading…
Reference in New Issue