Solved multiple bugs

This commit is contained in:
2021-01-05 19:40:52 +01:00
parent 1276415dd0
commit 9b09e5711b
6 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
- name: "restart systemd-email service"
systemd:
name: systemd-email.service
daemon_reload: yes

View File

@@ -8,4 +8,5 @@
template: src=systemd-email.sh.j2 dest=/usr/local/bin/systemd-email.sh
- name: configure systemd-email.service
template: src=systemd-email.service.j2 dest=/etc/systemd/system/systemd-email.service
template: src=systemd-email@.service.j2 dest=/etc/systemd/system/systemd-email@.service
notify: restart systemd-email service

View File

@@ -3,6 +3,6 @@ Description=status email for %i to user
[Service]
Type=oneshot
ExecStart=/usr/local/bin/systemd-email.sh %i
User=nobody
ExecStart=/bin/bash /usr/local/bin/systemd-email.sh %i
User=root
Group=systemd-journal