ansible-edda/tasks/systemd-mail.yml

19 lines
534 B
YAML

- name: SystemD mail script
template:
src: ./filesystem/yggdrasil/usr/local/sbin/systemd-mail-systemctl-status.j2
dest: /usr/local/sbin/systemd-mail-systemctl-status
mode: 0755
- name: SystemD mail service
copy:
src: ./filesystem/yggdrasil/etc/systemd/system/status-mail@.service
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