Optimized svc-bkp-loc-2-usb

This commit is contained in:
2025-07-15 20:29:01 +02:00
parent 5e83f306b4
commit f6c767f122
6 changed files with 43 additions and 22 deletions

View File

@@ -1,6 +1,20 @@
- name: Fail if any backup_to_usb variable is empty
assert:
that:
- backup_to_usb_mount != ""
- backup_to_usb_target != ""
- backup_to_usb_source != ""
fail_msg: |
One or more of the configuration variables are empty!
Please set:
- mount
- target
- source
to nonempty values in your configuration file.
- name: Copy backup script to the scripts directory
copy:
src: svc-bkp-loc-2-usb.python
src: svc-bkp-loc-2-usb.py
dest: "{{ backup_to_usb_script_path }}"
owner: root
group: root