Added .cymais.service suffix to make cymais files more visible

This commit is contained in:
2024-01-10 11:18:38 +01:00
parent f3ce00dca7
commit b7e3a7f838
68 changed files with 144 additions and 132 deletions

View File

@@ -3,7 +3,9 @@
when: run_once_systemd_notifier_email is not defined
- name: configure msmtprc.conf.j2
template: src=msmtprc.conf.j2 dest=/root/.msmtprc
template:
src: "msmtprc.conf.j2"
dest: "/root/.msmtprc"
when: run_once_systemd_notifier_email is not defined
- name: "create {{systemd_notifier_email_folder}}"
@@ -14,11 +16,15 @@
when: run_once_systemd_notifier_email is not defined
- name: configure systemd-notifier-email.sh
template: src=systemd-notifier-email.sh.j2 dest={{systemd_notifier_email_folder}}systemd-notifier-email.sh
template:
src: systemd-notifier-email.sh.j2
dest: "{{systemd_notifier_email_folder}}systemd-notifier-email.sh"
when: run_once_systemd_notifier_email is not defined
- name: configure systemd-notifier-email.service
template: src=systemd-notifier-email@.service.j2 dest=/etc/systemd/system/systemd-notifier-email@.service
- name: configure systemd-notifier-email.cymais.service
template:
src: systemd-notifier-email@.service.j2
dest: /etc/systemd/system/systemd-notifier-email.cymais@.service
notify: restart systemd-notifier-email service
when: run_once_systemd_notifier_email is not defined