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