ansible-edda/tasks/systemd-mail.yml

19 lines
534 B
YAML
Raw Normal View History

2022-09-11 20:55:30 +02:00
- name: SystemD mail script
template:
2022-09-21 23:57:15 +02:00
src: ./filesystem/yggdrasil/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-21 23:57:15 +02:00
src: ./filesystem/yggdrasil/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