Minor updates

This commit is contained in:
Chris Hammer 2025-02-27 19:38:35 -05:00
parent 5cc8842bc5
commit 1355dc96f7
2 changed files with 3 additions and 12 deletions

View File

@ -7,12 +7,6 @@
tasks: 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 - name: Include the backup role
ansible.builtin.include_role: ansible.builtin.include_role:
name: ../roles/rear_backup name: ../roles/rear_backup

View File

@ -6,8 +6,7 @@
strategy: free strategy: free
vars: vars:
rear_backup_success_path: "/var/log/IPE/IPU" rear_backup_success_file: "/var/log/IPE/IPU/bigboot_rear_success"
rear_backup_success_file: "{{ rear_backup_success_path }}/bigboot_success"
tasks: tasks:
- name: Check for backup log presence - name: Check for backup log presence
@ -23,6 +22,7 @@
ansible.builtin.command: ansible.builtin.command:
cmd: "grep 'Finished running mkbackup workflow' /var/log/rear/rear-{{ ansible_hostname }}.log" cmd: "grep 'Finished running mkbackup workflow' /var/log/rear/rear-{{ ansible_hostname }}.log"
changed_when: false changed_when: false
ignore_errors: true
register: validate_backup_log register: validate_backup_log
- name: Debug validate_backup_log - name: Debug validate_backup_log
@ -39,13 +39,10 @@
- name: Create Bigboot backup success file - name: Create Bigboot backup success file
ansible.builtin.copy: ansible.builtin.copy:
dest: "{{ rear_backup_success_file }}" dest: "{{ rear_backup_success_file }}"
content: "success" content: "success\n"
mode: "0644" mode: "0644"
rescue: rescue:
- name: No backup log found - name: No backup log found
ansible.builtin.debug: ansible.builtin.debug:
msg: "ReaR backup log could not be found or an error was encountered. Please run the backup and try again." msg: "ReaR backup log could not be found or an error was encountered. Please run the backup and try again."
- name: OS Failure
ansible.builtin.debug:
msg: "OS failure: Expecting version {{ ansible_distribution_major_version }}, got {{ ansible_distribution_major_version | int + 1 }}"