2025-02-22 07:42:52 -05:00

22 lines
495 B
YAML

---
- name: Perform a ReaR backup
hosts: all
become: true
gather_facts: true
strategy: free
tasks:
- name: "Debug survey: rear_force_backup"
ansible.builtin.debug:
var: rear_force_backup
when:
- rear_force_backup is defined
- name: Include the backup role
ansible.builtin.include_role:
name: ../roles/rear_backup
when:
- ansible_distribution_major_version >= '7'
- not rear_backup_skip | default(false) | bool