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

25 lines
750 B
YAML
Raw Normal View History

2023-11-17 12:35:39 +01:00
- name: "create {{health_journalctl_folder}}"
2023-11-16 15:32:29 +01:00
file:
2023-11-17 12:35:39 +01:00
path: "{{health_journalctl_folder}}"
2023-11-16 15:32:29 +01:00
state: directory
mode: 0755
- name: create health-journalctl.sh
copy:
src: health-journalctl.sh
2023-11-17 12:35:39 +01:00
dest: "{{health_journalctl_folder}}health-journalctl.sh"
2023-11-16 15:32:29 +01:00
- name: create health-journalctl.service
template:
src: health-journalctl.service.j2
dest: /etc/systemd/system/health-journalctl.service
notify: reload health-journalctl.service
- name: create health-journalctl.timer
template:
src: health-journalctl.timer.j2
dest: /etc/systemd/system/health-journalctl.timer
register: health_journalctl_timer
changed_when: health_journalctl_timer.changed or activate_all_timers
2023-11-16 15:32:29 +01:00
notify: restart health-journalctl.timer