mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 00:41:06 +01:00
27 lines
717 B
YAML
27 lines
717 B
YAML
- name: "create {{docker_health_btrfs_folder}}"
|
|
file:
|
|
path: "{{docker_health_btrfs_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create health-btrfs.sh
|
|
copy:
|
|
src: health-btrfs.sh
|
|
dest: "{{docker_health_btrfs_folder}}health-btrfs.sh"
|
|
|
|
- name: create health-btrfs.cymais.service
|
|
template:
|
|
src: health-btrfs.service.j2
|
|
dest: /etc/systemd/system/health-btrfs.cymais.service
|
|
notify: reload health-btrfs.cymais.service
|
|
|
|
- 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}}"
|