2023-11-17 12:35:39 +01:00
|
|
|
- name: "create {{health_disc_space_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
file:
|
2023-11-17 12:35:39 +01:00
|
|
|
path: "{{health_disc_space_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: create health-disc-space.sh
|
|
|
|
copy:
|
|
|
|
src: health-disc-space.sh
|
2023-11-17 12:35:39 +01:00
|
|
|
dest: "{{health_disc_space_folder}}health-disc-space.sh"
|
2023-11-16 15:32:29 +01:00
|
|
|
|
|
|
|
- name: create health-disc-space.service
|
|
|
|
template:
|
|
|
|
src: health-disc-space.service.j2
|
|
|
|
dest: /etc/systemd/system/health-disc-space.service
|
|
|
|
notify: reload health-disc-space.service
|
|
|
|
|
|
|
|
- name: create health-disc-space.timer
|
|
|
|
template:
|
|
|
|
src: health-disc-space.timer.j2
|
|
|
|
dest: /etc/systemd/system/health-disc-space.timer
|
2023-11-16 19:43:54 +01:00
|
|
|
register: health_disc_space_timer
|
2023-12-15 13:27:23 +01:00
|
|
|
changed_when: health_disc_space_timer.changed or activate_all_timers | bool
|
2023-11-16 15:32:29 +01:00
|
|
|
notify: restart health-disc-space.timer
|