computer-playbook/roles/server_native-systemd-email/tasks/main.yml

19 lines
575 B
YAML
Raw Normal View History

- name: install smtp-forwarder
pacman: name=smtp-forwarder state=present
- name: configure msmtprc.conf.j2
template: src=msmtprc.conf.j2 dest=/root/.msmtprc
2023-03-26 17:05:06 +02:00
- name: "create {{systemd_email_folder}}"
file:
path: "{{systemd_email_folder}}"
state: directory
mode: 0755
- name: configure systemd-email.sh
2023-03-26 23:29:30 +02:00
template: src=systemd-email.sh.j2 dest={{systemd_email_folder}}systemd-email.sh
- name: configure systemd-email.service
2021-01-05 19:40:52 +01:00
template: src=systemd-email@.service.j2 dest=/etc/systemd/system/systemd-email@.service
notify: restart systemd-email service