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: