mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Another big round of refactoring and cleaning...
This commit is contained in:
24
roles/sys-alm-email/tasks/main.yml
Normal file
24
roles/sys-alm-email/tasks/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
- name: "create {{systemd_notifier_email_folder}}"
|
||||
file:
|
||||
path: "{{systemd_notifier_email_folder}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
when: run_once_systemd_notifier_email is not defined
|
||||
|
||||
- name: configure sys-alm-email.sh
|
||||
template:
|
||||
src: sys-alm-email.sh.j2
|
||||
dest: "{{systemd_notifier_email_folder}}sys-alm-email.sh"
|
||||
when: run_once_systemd_notifier_email is not defined
|
||||
|
||||
- name: configure sys-alm-email.cymais.service
|
||||
template:
|
||||
src: sys-alm-email@.service.j2
|
||||
dest: /etc/systemd/system/sys-alm-email.cymais@.service
|
||||
notify: restart sys-alm-email service
|
||||
when: run_once_systemd_notifier_email is not defined
|
||||
|
||||
- name: run the systemd_notifier_email tasks once
|
||||
set_fact:
|
||||
run_once_systemd_notifier_email: true
|
||||
when: run_once_systemd_notifier_email is not defined
|
Reference in New Issue
Block a user