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

21 lines
659 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 17:05:06 +02:00
template: btrfs-health-check.service.j2 dest=/etc/systemd/system/btrfs-health-check.service
2022-01-30 13:22:47 +01:00
notify: restart btrfs-health-check.service
- name: create btrfs-health-check.timer
copy:
src: btrfs-health-check.timer
dest: "/etc/systemd/system/btrfs-health-check.timer"
notify: restart btrfs-health-check.timer