More OpenWRT work

This commit is contained in:
Bradley committed 2026-11-28 20:58:58 -05:00
1 parent 38d9e5a74d
commit 2adb6c0cfc
2 files changed
+33 -1

No files matched your search

+26 -1
View File
@@ -50,4 +50,29 @@
src: "{{ backup_dir }}/{{ remote_tmp_file | basename }}"
dest: "{{ unarchive_where }}"
remote_src: false
delegate_to: localhost
delegate_to: localhost
- name: Attempt to trigger a borg backup
ansible.builtin.shell:
cmd: >
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
- name: Cleanup backup dir
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