mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 14:41:04 +01:00
23 lines
643 B
YAML
23 lines
643 B
YAML
- name: install psutil
|
|
pip:
|
|
name: psutil
|
|
|
|
- name: "create {{docker_backups_cleanup}}"
|
|
file:
|
|
path: "{{docker_backups_cleanup}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create backups-cleanup.py
|
|
template: src=backups-cleanup.py.j2 dest={{docker_backups_cleanup}}backups-cleanup.py
|
|
|
|
- name: create backups-cleanup.service
|
|
template: src=backups-cleanup.service.j2 dest=/etc/systemd/system/backups-cleanup.service
|
|
notify: restart backups-cleanup.service
|
|
|
|
- name: create backups-cleanup.timer
|
|
copy:
|
|
src: backups-cleanup.timer
|
|
dest: "/etc/systemd/system/backups-cleanup.timer"
|
|
notify: restart backups-cleanup.timer
|