mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-04 09:21:42 +02:00
Finished backup to swappable implementation
This commit is contained in:
26
roles/independent_backups-cleanup-service/tasks/main.yml
Normal file
26
roles/independent_backups-cleanup-service/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user