2023-04-16 09:59:54 +02:00
|
|
|
- name: "create {{disc_space_check_folder}}"
|
|
|
|
file:
|
|
|
|
path: "{{disc_space_check_folder}}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2023-04-16 13:29:12 +02:00
|
|
|
- name: create disc-space-check.sh
|
|
|
|
copy:
|
2023-04-16 12:37:31 +02:00
|
|
|
src: disc-space-check.sh
|
2023-04-16 09:59:54 +02:00
|
|
|
dest: "{{disc_space_check_folder}}disc-space-check.sh"
|
|
|
|
|
|
|
|
- name: create disc-space-check.service
|
|
|
|
template:
|
|
|
|
src: disc-space-check.service.j2
|
|
|
|
dest: /etc/systemd/system/disc-space-check.service
|
|
|
|
notify: reload disc-space-check.service
|
|
|
|
|
|
|
|
- name: create disc-space-check.timer
|
|
|
|
template:
|
|
|
|
src: disc-space-check.timer.j2
|
|
|
|
dest: /etc/systemd/system/disc-space-check.timer
|
|
|
|
notify: restart disc-space-check.timer
|