Add script install path var
This commit is contained in:
parent
3631ad6c6c
commit
06b25aa678
@ -4,7 +4,9 @@
|
||||
vars:
|
||||
borg_repo_path: "/var/backups/backup.borg/"
|
||||
borg_repo_encryption: "none"
|
||||
borg_script_install_path: "/opt/borgbackup.sh"
|
||||
borg_backup_paths: "/etc/ /var/spool/ --exclude=*.log"
|
||||
|
||||
tasks:
|
||||
- name: "Install borg backup"
|
||||
apt:
|
||||
@ -19,7 +21,7 @@
|
||||
- name: "Configure backup script"
|
||||
ansible.builtin.template:
|
||||
src: ../templates/borgbackup.j2
|
||||
dest: /opt/borgbackup.sh
|
||||
dest: "{{borg_script_install_path}}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '744'
|
||||
@ -29,4 +31,4 @@
|
||||
name: "Borg backup"
|
||||
minute: "0"
|
||||
hour: "1"
|
||||
job: "/opt/borgbackup.sh"
|
||||
job: "{{borg_script_install_path}}"
|
||||
|
Loading…
Reference in New Issue
Block a user