Shorted backup- to bkp-

This commit is contained in:
2025-07-09 03:36:44 +02:00
parent d0bd33fee3
commit 9668e74139
56 changed files with 89 additions and 89 deletions

View File

@@ -0,0 +1,34 @@
- name: "create {{docker_backup_remote_to_local_folder}}"
file:
path: "{{docker_backup_remote_to_local_folder}}"
state: directory
mode: 0755
- name: create bkp-remote-to-local.sh
copy:
src: bkp-remote-to-local.sh
dest: "{{docker_backup_remote_to_local_folder}}bkp-remote-to-local.sh"
mode: 0755
- name: create bkp-remote-to-local.cymais.service
template:
src: bkp-remote-to-local.service.j2
dest: /etc/systemd/system/bkp-remote-to-local.cymais.service
notify: reload bkp-remote-to-local service
- name: create backups-remote-to-local.sh
template:
src: backups-remote-to-local.sh.j2
dest: "{{docker_backup_remote_to_local_folder}}backups-remote-to-local.sh"
mode: 0755
- name: set service_name to the name of the current role
set_fact:
service_name: "{{ role_name }}"
- name: "include role for generic-timer for {{service_name}}"
include_role:
name: generic-timer
vars:
on_calendar: "{{on_calendar_backup_remote_to_local}}"