From f285f2b46e11c40046d4b243fe6bae6da4315214 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 17 Nov 2023 23:34:50 +0100 Subject: [PATCH] solved bug --- roles/backup-remote-to-local/tasks/main.yml | 6 +++--- .../templates/backup-remote-to-local.service.j2 | 2 +- ...-remote-to-local.sh.j2 => backups-remote-to-local.sh.j2} | 0 roles/backup-remote-to-local/vars/main.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename roles/backup-remote-to-local/templates/{backup-remote-to-local.sh.j2 => backups-remote-to-local.sh.j2} (100%) diff --git a/roles/backup-remote-to-local/tasks/main.yml b/roles/backup-remote-to-local/tasks/main.yml index 94cce452..350d8d91 100644 --- a/roles/backup-remote-to-local/tasks/main.yml +++ b/roles/backup-remote-to-local/tasks/main.yml @@ -20,9 +20,9 @@ changed_when: backup_backup_remote_to_local_timer.changed or activate_all_timers | default(false) | bool notify: restart backup-remote-to-local timer -- name: create backup-remote-to-local.sh +- name: create backups-remote-to-local.sh template: - src: backup-remote-to-local.sh.j2 - dest: "{{docker_backup_remote_to_local_folder}}backup-remote-to-local.sh" + src: backups-remote-to-local.sh.j2 + dest: "{{docker_backup_remote_to_local_folder}}backups-remote-to-local.sh" mode: 0755 diff --git a/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 b/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 index 5dec08f6..55a77ecc 100644 --- a/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 +++ b/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 @@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service [Service] Type=oneshot -ExecStart=/usr/bin/bash {{docker_backup_remote_to_local_folder}}backup-remote-to-local.sh +ExecStart=/usr/bin/bash {{docker_backup_remote_to_local_folder}}backups-remote-to-local.sh diff --git a/roles/backup-remote-to-local/templates/backup-remote-to-local.sh.j2 b/roles/backup-remote-to-local/templates/backups-remote-to-local.sh.j2 similarity index 100% rename from roles/backup-remote-to-local/templates/backup-remote-to-local.sh.j2 rename to roles/backup-remote-to-local/templates/backups-remote-to-local.sh.j2 diff --git a/roles/backup-remote-to-local/vars/main.yml b/roles/backup-remote-to-local/vars/main.yml index d0744c9b..a0582295 100644 --- a/roles/backup-remote-to-local/vars/main.yml +++ b/roles/backup-remote-to-local/vars/main.yml @@ -1 +1 @@ -docker_backup_remote_to_local_folder: "{{path_administrator_scripts}}pull-primary-backups/" \ No newline at end of file +docker_backup_remote_to_local_folder: "{{path_administrator_scripts}}backup-remote-to-local/" \ No newline at end of file