exim4 test
This commit is contained in:
parent
db8cadee19
commit
754af4bdea
|
@ -1,5 +1,3 @@
|
||||||
# restart exim4 service to apply changes
|
# apply reconfig and restart exim4 service to apply changes
|
||||||
- name: Restart exim4 service
|
- name: apply reconfig
|
||||||
service:
|
command: sudo dpkg-reconfigure -f noninteractive exim4-config
|
||||||
name: exim4
|
|
||||||
state: restarted
|
|
|
@ -74,7 +74,15 @@
|
||||||
value: "{{ ansible_nodename }}" # var to define survey(encuesta)
|
value: "{{ ansible_nodename }}" # var to define survey(encuesta)
|
||||||
- name: exim4/use_split_config
|
- name: exim4/use_split_config
|
||||||
value: 'false'
|
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
|
# Send mail to verify relay-host
|
||||||
#- name: sending mail to verify exim4 config works
|
#- name: sending mail to verify exim4 config works
|
||||||
|
|
Loading…
Reference in New Issue