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

27 lines
717 B
YAML
Raw Normal View History

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.cymais.service
2023-11-16 15:32:29 +01:00
template:
src: health-btrfs.service.j2
dest: /etc/systemd/system/health-btrfs.cymais.service
notify: reload health-btrfs.cymais.service
2023-11-16 15:32:29 +01:00
2024-01-04 13:27:07 +01:00
- name: set service_name to the name of the current role
set_fact:
service_name: "{{ role_name }}"
- name: "include role for systemd-timer for {{service_name}}"
include_role:
name: systemd-timer
vars:
on_calendar: "{{on_calendar_health_btrfs}}"