mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized performance by moving multiple similar when includes to own tasks file
This commit is contained in:
26
roles/sys-hlth-journalctl/tasks/01_core.yml
Normal file
26
roles/sys-hlth-journalctl/tasks/01_core.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: "create {{health_journalctl_folder}}"
|
||||
file:
|
||||
path: "{{health_journalctl_folder}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create sys-hlth-journalctl.sh
|
||||
copy:
|
||||
src: sys-hlth-journalctl.sh
|
||||
dest: "{{health_journalctl_folder}}sys-hlth-journalctl.sh"
|
||||
|
||||
- name: create sys-hlth-journalctl.infinito.service
|
||||
template:
|
||||
src: sys-hlth-journalctl.service.j2
|
||||
dest: /etc/systemd/system/sys-hlth-journalctl.infinito.service
|
||||
notify: reload sys-hlth-journalctl.infinito.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_journalctl}}"
|
Reference in New Issue
Block a user