33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
- name: SystemD mail root script
|
|
template:
|
|
src: ./filesystem/common/usr/local/sbin/systemd-mail-systemctl-status.j2
|
|
dest: /usr/local/sbin/systemd-mail-systemctl-status
|
|
mode: 0755
|
|
|
|
- name: SystemD mail user script
|
|
template:
|
|
src: ./filesystem/common/usr/local/bin/systemd-mail-systemctl-status.j2
|
|
dest: /usr/local/bin/systemd-mail-systemctl-status
|
|
mode: 0755
|
|
|
|
- name: SystemD mail root service
|
|
copy:
|
|
src: ./filesystem/common/etc/systemd/system/status-mail@.service
|
|
dest: /etc/systemd/system/status-mail@.service
|
|
mode: 0644
|
|
register: systemd_system_status_mail_service_file
|
|
|
|
- name: SystemD mail user service
|
|
copy:
|
|
src: ./filesystem/common/etc/systemd/user/status-mail@.service
|
|
dest: /etc/systemd/user/status-mail@.service
|
|
mode: 0644
|
|
register: systemd_user_status_mail_service_file
|
|
|
|
- name: SystemD daemon reload
|
|
systemd:
|
|
daemon_reload: true
|
|
when:
|
|
systemd_system_status_mail_service_file is changed or
|
|
systemd_user_status_mail_service_file is changed
|