8025-awxRefactor-debianBootStrap #30
|
@ -19,4 +19,4 @@
|
||||||
- name: reconfigure tzdata
|
- name: reconfigure tzdata
|
||||||
command: dpkg-reconfigure -f noninteractive tzdata
|
command: dpkg-reconfigure -f noninteractive tzdata
|
||||||
- name: update exim configuration
|
- name: update exim configuration
|
||||||
command: update-exim4.conf
|
command: /usr/sbin/update-exim4.conf
|
||||||
|
|
|
@ -20,8 +20,10 @@
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
notify: update exim configuration
|
notify: update exim configuration
|
||||||
register: exim_config
|
register: exim_config
|
||||||
|
- name: Force execution of handlers immediately
|
||||||
|
meta: flush_handlers
|
||||||
- name: Sending mail to verify relay host configuration works
|
- name: Sending mail to verify relay host configuration works
|
||||||
shell: >
|
shell: >
|
||||||
echo "If you see this message, relayhost on {{ ansible_fqdn }} has been configured correctly." \
|
sleep 2; echo "If you see this message, relayhost on {{ ansible_fqdn }} has been configured correctly." \
|
||||||
| mailx -s "Relayhost test for {{ ansible_fqdn }}" "{{ sysadmin_mail }}"
|
| mailx -s "Relayhost test for {{ ansible_fqdn }}" "{{ sysadmin_mail }}"
|
||||||
when: exim_config.changed
|
when: exim_config.changed
|
||||||
|
|
Loading…
Reference in New Issue