2022-09-11 20:55:30 +02:00
|
|
|
- name: SystemD mail script
|
|
|
|
template:
|
2022-09-22 23:01:27 +02:00
|
|
|
src: ./filesystem/{{ ansible_hostname }}/usr/local/sbin/systemd-mail-systemctl-status.j2
|
2022-09-11 20:55:30 +02:00
|
|
|
dest: /usr/local/sbin/systemd-mail-systemctl-status
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: SystemD mail service
|
|
|
|
copy:
|
2022-09-22 23:01:27 +02:00
|
|
|
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/status-mail@.service
|
2022-09-11 20:55:30 +02:00
|
|
|
dest: /etc/systemd/system/status-mail@.service
|
|
|
|
mode: 0644
|
|
|
|
register: systemd_status_mail_service_file
|
|
|
|
|
|
|
|
- name: SystemD daemon reload
|
|
|
|
systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
when:
|
|
|
|
systemd_status_mail_service_file is changed
|