Fix var names
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
- hosts: all
|
||||
become: yes
|
||||
vars:
|
||||
borg.repo.path: /var/backup/backup.borg/
|
||||
borg.repo.encryption: none
|
||||
borg.backup.paths: /etc/ /var/spool/ --exclude=*.log
|
||||
borg_repo_path: "/var/backup/backup.borg/"
|
||||
borg_repo_encryption: "none"
|
||||
borg_backup_paths: "/etc/ /var/spool/ --exclude=*.log"
|
||||
tasks:
|
||||
- name: "Install borg backup"
|
||||
apt:
|
||||
@ -12,9 +12,9 @@
|
||||
state: latest
|
||||
|
||||
- name: "Create backup repository"
|
||||
ansible.builtin.command: borg init -e {{borg.repo.encryption}} {{borg.repo.path}}
|
||||
ansible.builtin.command: borg init -e {{borg_repo_encryption}} {{borg_repo_path}}
|
||||
args:
|
||||
creates: {{borg.repo.path}}
|
||||
creates: {borg_repo_path}
|
||||
|
||||
- name: "Configure backup script"
|
||||
ansible.builtin.copy:
|
||||
|
Reference in New Issue
Block a user