Refactored /usr/local/bin

This commit is contained in:
2023-03-26 17:05:06 +02:00
parent 665a4ba72e
commit ada258b20d
24 changed files with 51 additions and 38 deletions

View File

@@ -4,8 +4,14 @@
- 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=/usr/local/bin/systemd-email.sh
template: src=systemd-email.sh.j2 dest={{systemd_email_folder}}bin/systemd-email.sh
- name: configure systemd-email.service
template: src=systemd-email@.service.j2 dest=/etc/systemd/system/systemd-email@.service