mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Merged client playbook and server playbook
This commit is contained in:
22
roles/server_native-disc-space-check/tasks/main.yml
Normal file
22
roles/server_native-disc-space-check/tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- name: "create {{disc_space_check_folder}}"
|
||||
file:
|
||||
path: "{{disc_space_check_folder}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create disc-space-check.sh
|
||||
copy:
|
||||
src: disc-space-check.sh
|
||||
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
|
Reference in New Issue
Block a user