optimized variable names

This commit is contained in:
2023-11-17 12:35:39 +01:00
parent 6bc6f52f5c
commit dfaa449989
47 changed files with 87 additions and 87 deletions

View File

@@ -8,7 +8,7 @@
- name: pull backup-docker-to-local.git
git:
repo: "https://github.com/kevinveenbirkenbach/backup-docker-to-local.git"
dest: "{{docker_volume_backup_folder}}"
dest: "{{backup_docker_to_local_folder}}"
update: yes
register: git_result
ignore_errors: true
@@ -30,9 +30,9 @@
changed_when: backup_docker_to_local_timer.changed or activate_all_timers | default(false) | bool
notify: restart backup-docker-to-local.timer
- name: create {{docker_volume_backup_folder}}databases.csv
- name: create {{backup_docker_to_local_folder}}databases.csv
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{docker_volume_backup_folder}}databases.csv"
dest: "{{docker_volume_backup_folder}}databases.csv"
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{backup_docker_to_local_folder}}databases.csv"
dest: "{{backup_docker_to_local_folder}}databases.csv"
owner: root
group: root

View File

@@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python {{docker_volume_backup_folder}}backup-docker-to-local.py
ExecStart=/usr/bin/python {{backup_docker_to_local_folder}}backup-docker-to-local.py

View File

@@ -2,7 +2,7 @@
Description=backups the docker volumes
[Timer]
OnCalendar={{on_calendar_docker_volume_backup}}
OnCalendar={{on_calendar_backup_docker_to_local}}
RandomizedDelaySec={{randomized_delay_sec}}
Persistent=false

View File

@@ -1 +1 @@
docker_volume_backup_folder: "{{path_administrator_scripts}}backup-docker-to-local/"
backup_docker_to_local_folder: "{{path_administrator_scripts}}backup-docker-to-local/"