2023-11-17 12:35:39 +01:00
|
|
|
- name: "create {{docker_health_btrfs_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
file:
|
2023-11-17 12:35:39 +01:00
|
|
|
path: "{{docker_health_btrfs_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: create health-btrfs.sh
|
|
|
|
copy:
|
|
|
|
src: health-btrfs.sh
|
2023-11-17 12:35:39 +01:00
|
|
|
dest: "{{docker_health_btrfs_folder}}health-btrfs.sh"
|
2023-11-16 15:32:29 +01:00
|
|
|
|
|
|
|
- name: create health-btrfs.service
|
|
|
|
template:
|
|
|
|
src: health-btrfs.service.j2
|
|
|
|
dest: /etc/systemd/system/health-btrfs.service
|
|
|
|
notify: reload health-btrfs.service
|
|
|
|
|
|
|
|
- name: create health-btrfs.timer
|
|
|
|
template:
|
|
|
|
src: health-btrfs.timer.j2
|
|
|
|
dest: "/etc/systemd/system/health-btrfs.timer"
|
2023-11-16 19:43:54 +01:00
|
|
|
register: health_btrs_timer
|
|
|
|
changed_when: health_btrs_timer.changed or activate_all_timers | default(false) | bool
|
2023-11-16 15:32:29 +01:00
|
|
|
notify: restart health-btrfs.timer
|