mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
25 lines
774 B
YAML
25 lines
774 B
YAML
- name: "create {{health_journalctl_folder}}"
|
|
file:
|
|
path: "{{health_journalctl_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create health-journalctl.sh
|
|
copy:
|
|
src: health-journalctl.sh
|
|
dest: "{{health_journalctl_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
|
|
register: health_journalctl_timer
|
|
changed_when: health_journalctl_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart health-journalctl.timer
|