mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-24 03:05:03 +01:00
24 lines
796 B
YAML
24 lines
796 B
YAML
- name: "create {{cleanup_disc_space_folder}}"
|
|
file:
|
|
path: "{{cleanup_disc_space_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create cleanup-disc-space.sh
|
|
template:
|
|
src: cleanup-disc-space.sh.j2
|
|
dest: "{{cleanup_disc_space_folder}}cleanup-disc-space.sh"
|
|
|
|
- name: create cleanup-disc-space.service
|
|
template:
|
|
src: cleanup-disc-space.service.j2
|
|
dest: /etc/systemd/system/cleanup-disc-space.service
|
|
notify: reload cleanup-disc-space.service
|
|
|
|
- name: create cleanup-disc-space.timer
|
|
template:
|
|
src: cleanup-disc-space.timer.j2
|
|
dest: /etc/systemd/system/cleanup-disc-space.timer
|
|
register: cleanup_disc_space_timer
|
|
changed_when: cleanup_disc_space_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart cleanup-disc-space.timer |