Refactored /usr/local/bin

This commit is contained in:
2023-03-26 17:05:06 +02:00
parent 665a4ba72e
commit ada258b20d
24 changed files with 51 additions and 38 deletions

View File

@@ -2,13 +2,17 @@
pip:
name: psutil
- name: "create {{docker_backups_cleanup}}"
file:
path: "{{docker_backups_cleanup}}"
state: directory
mode: 0755
- name: create backups-cleanup.py
template: src=backups-cleanup.py.j2 dest=/usr/local/bin/backups-cleanup.py
template: src=backups-cleanup.py.j2 dest={{docker_backups_cleanup}}backups-cleanup.py
- name: create backups-cleanup.service
copy:
src: backups-cleanup.service
dest: "/etc/systemd/system/backups-cleanup.service"
template: src=backups-cleanup.service.j2 dest=/etc/systemd/system/backups-cleanup.service
notify: restart backups-cleanup.service
- name: create backups-cleanup.timer