mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 04:25:02 +01:00
24 lines
580 B
YAML
24 lines
580 B
YAML
- name: install lsof and python-psutil
|
|
community.general.pacman:
|
|
name:
|
|
- lsof
|
|
- python-psutil
|
|
state: present
|
|
|
|
- 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"
|
|
|
|
- name: create cleanup-backups.service
|
|
template:
|
|
src: "cleanup-backups.service.j2"
|
|
dest: "/etc/systemd/system/cleanup-backups.service"
|
|
notify: reload cleanup-backups.service
|