Finished backup-to-swappable draft

This commit is contained in:
2023-04-26 22:12:40 +02:00
parent 6a4dea3582
commit 7eed695623
40 changed files with 115 additions and 37 deletions

View File

@@ -0,0 +1,18 @@
- name: install smtp-forwarder
pacman: name=smtp-forwarder state=present
- name: configure msmtprc.conf.j2
template: src=msmtprc.conf.j2 dest=/root/.msmtprc
- name: "create {{systemd_email_folder}}"
file:
path: "{{systemd_email_folder}}"
state: directory
mode: 0755
- name: configure systemd-email.sh
template: src=systemd-email.sh.j2 dest={{systemd_email_folder}}systemd-email.sh
- name: configure systemd-email.service
template: src=systemd-email@.service.j2 dest=/etc/systemd/system/systemd-email@.service
notify: restart systemd-email service