mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved multiple bugs
This commit is contained in:
4
roles/native-systemd-email/handlers/main.yml
Normal file
4
roles/native-systemd-email/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: "restart systemd-email service"
|
||||
systemd:
|
||||
name: systemd-email.service
|
||||
daemon_reload: yes
|
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user