mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized svc-bkp-loc-2-usb
This commit is contained in:
@@ -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 non‑empty 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
|
||||
|
Reference in New Issue
Block a user