mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 10:45:03 +01:00
25 lines
774 B
YAML
25 lines
774 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: create health-disc-space.timer
|
|
template:
|
|
src: health-disc-space.timer.j2
|
|
dest: /etc/systemd/system/health-disc-space.timer
|
|
register: health_disc_space_timer
|
|
changed_when: health_disc_space_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart health-disc-space.timer
|