Trying a different mechanism for dealing with the borg repo password

This commit is contained in:
Bradley committed 2026-11-28 21:19:44 -05:00
1 parent ff80afca4b
commit c70d4403eb
1 file changed
+1 -3
+1 -3
View File
@@ -55,10 +55,10 @@
- name: Attempt to trigger a borg backup - name: Attempt to trigger a borg backup
ansible.builtin.shell: ansible.builtin.shell:
cmd: > cmd: >
export BORG_PASSPHRASE={{ borg_password }};
borg create --stats --progress --compression lz4 borg create --stats --progress --compression lz4
ssh://borg@10.42.0.3:2222/var/backups/borg/openwrt::{now:%Y-%m-%d-%H-%M-%s} ssh://borg@10.42.0.3:2222/var/backups/borg/openwrt::{now:%Y-%m-%d-%H-%M-%s}
{{ unarchive_where }}/ {{ unarchive_where }}/
stdin: "{{ borg_password }}"
register: borg_backup register: borg_backup
delegate_to: localhost delegate_to: localhost
@@ -66,13 +66,11 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ backup_dir }}" path: "{{ backup_dir }}"
state: absent state: absent
recurse: true
delegate_to: localhost delegate_to: localhost
- name: Cleanup unarchive_where - name: Cleanup unarchive_where
ansible.builtin.file: ansible.builtin.file:
path: "{{ unarchive_where }}" path: "{{ unarchive_where }}"
state: absent state: absent
recurse: true
delegate_to: localhost delegate_to: localhost