2023-11-16 15:32:29 +01:00
|
|
|
- name: "create {{journalctl_health_check_folder}}"
|
|
|
|
file:
|
|
|
|
path: "{{journalctl_health_check_folder}}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: create health-journalctl.sh
|
|
|
|
copy:
|
|
|
|
src: health-journalctl.sh
|
|
|
|
dest: "{{journalctl_health_check_folder}}health-journalctl.sh"
|
|
|
|
|
|
|
|
- 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
|
2023-11-16 19:43:54 +01:00
|
|
|
register: health_journalctl_timer
|
|
|
|
changed_when: health_journalctl_timer.changed or activate_all_timers | default(false) | bool
|
2023-11-16 15:32:29 +01:00
|
|
|
notify: restart health-journalctl.timer
|