Finished backup to swappable implementation

This commit is contained in:
2023-05-02 17:58:16 +02:00
parent 8c04fe88ed
commit 39c7a735a6
17 changed files with 26 additions and 21 deletions

View File

@@ -0,0 +1,26 @@
- name: install psutil
pip:
name: psutil
- name: install lsof
community.general.pacman:
name:
- lsof
state: present
- name: "create {{docker_backups_cleanup}}"
file:
path: "{{docker_backups_cleanup}}"
state: directory
mode: 0755
- name: create backups-cleanup.py
copy:
src: "backups-cleanup.py"
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: reload backups-cleanup.service