computer-playbook/roles/journalctl-health-check/tasks/main.yml

23 lines
727 B
YAML
Raw Normal View History

2023-04-15 14:31:18 +02:00
- name: "create {{journalctl_health_check_folder}}"
file:
path: "{{journalctl_health_check_folder}}"
state: directory
mode: 0755
- name: create journalctl-health-check.sh
copy:
src: journalctl-health-check.sh
dest: "{{journalctl_health_check_folder}}journalctl-health-check.sh"
- name: create journalctl-health-check.service
2023-04-15 17:06:10 +02:00
template:
src: journalctl-health-check.service.j2
dest: /etc/systemd/system/journalctl-health-check.service
notify: reload journalctl-health-check.service
2023-04-15 14:31:18 +02:00
- name: create journalctl-health-check.timer
2023-04-15 17:06:10 +02:00
template:
src: journalctl-health-check.timer.j2
dest: /etc/systemd/system/journalctl-health-check.timer
2023-04-15 14:31:18 +02:00
notify: restart journalctl-health-check.timer