exim4 test

This commit is contained in:
Ruben Blanco 2023-10-16 09:51:12 +02:00
parent db8cadee19
commit 754af4bdea
2 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,3 @@
# restart exim4 service to apply changes
- name: Restart exim4 service
service:
name: exim4
state: restarted
# apply reconfig and restart exim4 service to apply changes
- name: apply reconfig
command: sudo dpkg-reconfigure -f noninteractive exim4-config

View File

@ -74,7 +74,15 @@
value: "{{ ansible_nodename }}" # var to define survey(encuesta)
- name: exim4/use_split_config
value: 'false'
notify: Restart exim4 service
notify: apply reconfig
register: exim4_conf
# Restart after reconfigure
- name: restart exim4 service
service:
name: exim4
state: restarted
when: exim4_conf.changed
# Send mail to verify relay-host
#- name: sending mail to verify exim4 config works