21 lines
568 B
YAML
21 lines
568 B
YAML
---
|
|
- name: Template the system service
|
|
ansible.builtin.template:
|
|
src: healthcheck@.service.j2
|
|
dest: /etc/systemd/system/healthcheck@.service
|
|
mode: "0644"
|
|
become: true
|
|
- name: Copy the system timer
|
|
ansible.builtin.copy:
|
|
src: healthcheck@.timer
|
|
dest: /etc/systemd/system/healthcheck@.timer
|
|
mode: "0644"
|
|
become: true
|
|
- name: Enable the system timer
|
|
ansible.builtin.systemd_service:
|
|
name: healthcheck@{{ item }}.timer
|
|
state: started
|
|
enabled: true
|
|
daemon_reload: true
|
|
loop: "{{ healthcheck_svc.checks }}"
|
|
become: true
|