computer-playbook/roles/native-backups-cleanup/tasks/main.yml

19 lines
509 B
YAML
Raw Normal View History

- name: install psutil
pip:
name: psutil
2021-06-19 13:10:59 +02:00
- name: create backups-cleanup.py
template: src=backups-cleanup.py.j2 dest=/usr/local/bin/backups-cleanup.py
- name: create backups-cleanup.service
copy:
src: backups-cleanup.service
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