From a0054be5e6bf1d1df5c82902cb2d6c6debdf54d4 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 27 Feb 2025 21:16:14 -0500 Subject: [PATCH] Logic fixes --- bigboot_rear_backup.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bigboot_rear_backup.yml b/bigboot_rear_backup.yml index b51157a..46ac835 100644 --- a/bigboot_rear_backup.yml +++ b/bigboot_rear_backup.yml @@ -18,11 +18,16 @@ path: "{{ bigboot_backup_success_file }}" register: bigboot_backup_success + - name: End if backup for Bigboot already exists + ansible.builtin.meta: end_host + when: + - bigboot_backup_success['stat']['exists'] | bool + - not rear_backup_skip | default(false) | bool + - name: Perform ReaR Backup and write success log when: - bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool - not rear_backup_skip | default(false) | bool - - not bigboot_backup_success['stat']['exists'] | bool block: - name: Perform ReaR backup # noqa var-naming ansible.builtin.include_role: