mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 18:55:03 +01:00
19 lines
665 B
YAML
19 lines
665 B
YAML
- 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_notifier_email_folder}}"
|
|
file:
|
|
path: "{{systemd_notifier_email_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: configure systemd_notifier_email.sh
|
|
template: src=systemd_notifier_email.sh.j2 dest={{systemd_notifier_email_folder}}systemd_notifier_email.sh
|
|
|
|
- name: configure systemd_notifier_email.service
|
|
template: src=systemd_notifier_email@.service.j2 dest=/etc/systemd/system/systemd_notifier_email@.service
|
|
notify: restart systemd_notifier_email service
|