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:
27
roles/sys-hlth-msmtp/tasks/main.yml
Normal file
27
roles/sys-hlth-msmtp/tasks/main.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
- name: "create {{ health_msmtp_folder }}"
|
||||
file:
|
||||
path: "{{ health_msmtp_folder }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create sys-hlth-msmtp.sh
|
||||
template:
|
||||
src: sys-hlth-msmtp.sh.j2
|
||||
dest: "{{ health_msmtp_folder }}sys-hlth-msmtp.sh"
|
||||
mode: '0755'
|
||||
|
||||
- name: create sys-hlth-msmtp.cymais.service
|
||||
template:
|
||||
src: sys-hlth-msmtp.service.j2
|
||||
dest: /etc/systemd/system/sys-hlth-msmtp.cymais.service
|
||||
notify: reload sys-hlth-msmtp.cymais.service
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
|
||||
- name: include role for sys-timer for {{ service_name }}
|
||||
include_role:
|
||||
name: sys-timer
|
||||
vars:
|
||||
on_calendar: "{{ on_calendar_health_msmtp }}"
|
Reference in New Issue
Block a user