Refactored /usr/local/bin

This commit is contained in:
2023-03-26 17:05:06 +02:00
parent 665a4ba72e
commit ada258b20d
24 changed files with 51 additions and 38 deletions

View File

@@ -1,18 +1,16 @@
- name: "create /home/administrator/scripts/btrfs-health-check/"
- name: "create {{docker_btrfs_health_check_folder}}"
file:
path: "/home/administrator/scripts/btrfs-health-check"
path: "{{docker_btrfs_health_check_folder}}"
state: directory
mode: 0755
- name: create btrfs-health-check.sh
copy:
src: btrfs-health-check.sh
dest: "/home/administrator/scripts/btrfs-health-check/btrfs-health-check.sh"
dest: "{{docker_btrfs_health_check_folder}}btrfs-health-check.sh"
- name: create btrfs-health-check.service
copy:
src: btrfs-health-check.service
dest: "/etc/systemd/system/btrfs-health-check.service"
template: btrfs-health-check.service.j2 dest=/etc/systemd/system/btrfs-health-check.service
notify: restart btrfs-health-check.service
- name: create btrfs-health-check.timer