Trying a different mechanism for dealing with the borg repo password
This commit is contained in:
1 parent
ff80afca4b
commit
c70d4403eb
1 file changed
+1
-3
@@ -55,10 +55,10 @@
|
||||
- name: Attempt to trigger a borg backup
|
||||
ansible.builtin.shell:
|
||||
cmd: >
|
||||
export BORG_PASSPHRASE={{ borg_password }};
|
||||
borg create --stats --progress --compression lz4
|
||||
ssh://borg@10.42.0.3:2222/var/backups/borg/openwrt::{now:%Y-%m-%d-%H-%M-%s}
|
||||
{{ unarchive_where }}/
|
||||
stdin: "{{ borg_password }}"
|
||||
register: borg_backup
|
||||
delegate_to: localhost
|
||||
|
||||
@@ -66,13 +66,11 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ backup_dir }}"
|
||||
state: absent
|
||||
recurse: true
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Cleanup unarchive_where
|
||||
ansible.builtin.file:
|
||||
path: "{{ unarchive_where }}"
|
||||
state: absent
|
||||
recurse: true
|
||||
delegate_to: localhost
|
||||
|
||||
Reference in new issue
Block a user