computer-playbook/roles/native-btrfs-health-check/tasks/main.yml

23 lines
680 B
YAML
Raw Normal View History

2023-03-26 17:05:06 +02:00
- name: "create {{docker_btrfs_health_check_folder}}"
2022-01-30 13:22:47 +01:00
file:
2023-03-26 17:05:06 +02:00
path: "{{docker_btrfs_health_check_folder}}"
2022-01-30 13:22:47 +01:00
state: directory
mode: 0755
- name: create btrfs-health-check.sh
copy:
src: btrfs-health-check.sh
2023-03-26 17:05:06 +02:00
dest: "{{docker_btrfs_health_check_folder}}btrfs-health-check.sh"
2022-01-30 13:22:47 +01:00
- name: create btrfs-health-check.service
2023-03-26 21:11:09 +02:00
template:
src: btrfs-health-check.service.j2
dest: /etc/systemd/system/btrfs-health-check.service
2023-04-15 17:06:10 +02:00
notify: reload btrfs-health-check.service
2022-01-30 13:22:47 +01:00
- name: create btrfs-health-check.timer
2023-04-15 17:06:10 +02:00
template:
src: btrfs-health-check.timer.j2
2022-01-30 13:22:47 +01:00
dest: "/etc/systemd/system/btrfs-health-check.timer"
notify: restart btrfs-health-check.timer