exim4 test
This commit is contained in:
parent
db8cadee19
commit
754af4bdea
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue