mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Shorted cleanup- to cln-
This commit is contained in:
26
roles/cln-disc-space/tasks/main.yml
Normal file
26
roles/cln-disc-space/tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: "create {{cleanup_disc_space_folder}}"
|
||||
file:
|
||||
path: "{{cleanup_disc_space_folder}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create cln-disc-space.sh
|
||||
template:
|
||||
src: cln-disc-space.sh.j2
|
||||
dest: "{{cleanup_disc_space_folder}}cln-disc-space.sh"
|
||||
|
||||
- name: create cln-disc-space.cymais.service
|
||||
template:
|
||||
src: cln-disc-space.service.j2
|
||||
dest: /etc/systemd/system/cln-disc-space.cymais.service
|
||||
notify: reload cln-disc-space.cymais.service
|
||||
|
||||
- name: set service_name to the name of the current role
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
|
||||
- name: "include role for generic-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: generic-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_cleanup_disc_space}}"
|
Reference in New Issue
Block a user