mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
optimized variable names
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
- python-psutil
|
||||
state: present
|
||||
|
||||
- name: "create {{docker_backups_cleanup}}"
|
||||
- name: "create {{docker_cleanup_backups}}"
|
||||
file:
|
||||
path: "{{docker_backups_cleanup}}"
|
||||
path: "{{docker_cleanup_backups}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create cleanup-backups.py
|
||||
copy:
|
||||
src: "cleanup-backups.py"
|
||||
dest: "{{docker_backups_cleanup}}cleanup-backups.py"
|
||||
dest: "{{docker_cleanup_backups}}cleanup-backups.py"
|
||||
|
||||
- name: create cleanup-backups.service
|
||||
template:
|
||||
|
@@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/python {{docker_backups_cleanup}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}
|
||||
ExecStart=/usr/bin/python {{docker_cleanup_backups}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}
|
||||
|
@@ -1 +1 @@
|
||||
docker_backups_cleanup: "{{path_administrator_scripts}}cleanup-backups/"
|
||||
docker_cleanup_backups: "{{path_administrator_scripts}}cleanup-backups/"
|
Reference in New Issue
Block a user