diff --git a/playbooks/new_backup_protocol.yml b/playbooks/new_backup_protocol.yml index 60b60ef..cd54797 100644 --- a/playbooks/new_backup_protocol.yml +++ b/playbooks/new_backup_protocol.yml @@ -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 \ No newline at end of file