mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
26 lines
729 B
YAML
26 lines
729 B
YAML
- name: "create {{health_disc_space_folder}}"
|
|
file:
|
|
path: "{{health_disc_space_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create health-disc-space.sh
|
|
copy:
|
|
src: health-disc-space.sh
|
|
dest: "{{health_disc_space_folder}}health-disc-space.sh"
|
|
|
|
- name: create health-disc-space.service
|
|
template:
|
|
src: health-disc-space.service.j2
|
|
dest: /etc/systemd/system/health-disc-space.service
|
|
notify: reload health-disc-space.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_disc_space}}" |