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

24 lines
580 B
YAML
Raw Normal View History

2023-08-07 22:28:37 +02:00
- name: install lsof and python-psutil
community.general.pacman:
name:
- lsof
2023-08-07 22:28:37 +02:00
- python-psutil
state: present
2023-03-26 17:05:06 +02:00
- name: "create {{docker_backups_cleanup}}"
file:
path: "{{docker_backups_cleanup}}"
state: directory
mode: 0755
- name: create cleanup-backups.py
copy:
src: "cleanup-backups.py"
dest: "{{docker_backups_cleanup}}cleanup-backups.py"
2021-06-19 13:10:59 +02:00
- name: create cleanup-backups.service
2023-04-16 13:29:12 +02:00
template:
src: "cleanup-backups.service.j2"
dest: "/etc/systemd/system/cleanup-backups.service"
notify: reload cleanup-backups.service