mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized tests für run once
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
- name: Load former meta dependencies once
|
||||
block:
|
||||
- name: Include moved dependencies
|
||||
include_role:
|
||||
name: '{{ item }}'
|
||||
loop:
|
||||
- sys-cln-bkps-service
|
||||
- sys-lock
|
||||
- set_fact:
|
||||
run_once_svc_bkp_loc_2_usb: true
|
||||
when: run_once_svc_bkp_loc_2_usb is not defined
|
||||
- name: Fail if any backup_to_usb variable is empty
|
||||
assert:
|
||||
that:
|
||||
- backup_to_usb_mount != ""
|
||||
- backup_to_usb_target != ""
|
||||
- backup_to_usb_source != ""
|
||||
- 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:
|
||||
@@ -27,4 +38,4 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: reload svc-bkp-loc-2-usb.infinito.service
|
||||
notify: reload svc-bkp-loc-2-usb.infinito.service
|
||||
|
Reference in New Issue
Block a user