2025-03-06 00:01:17 -05:00

12 lines
410 B
YAML

---
- name: Check for previous backup completion
ansible.builtin.stat:
path: "{{ rear_backup_success_file_path }}/{{ rear_backup_workflow }}_rear_success"
register: rear_backup_success_file
- name: End host if backup has already completed successfully
ansible.builtin.meta: end_host
when:
- rear_backup_success_file['stat']['exists'] | bool
- not rear_force_backup | default(false) | bool