From f2e6dcc9e5b5625f23b6a532b61fa21d89bdc686 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 27 Aug 2024 15:33:07 -0400 Subject: [PATCH] Add fsck cleanup to cleanup.yml; comment out pre-checks for now --- bigboot_setup_environment.yml | 9 ++++----- tasks/cleanup.yml | 8 ++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bigboot_setup_environment.yml b/bigboot_setup_environment.yml index 466f037..ae43c9a 100644 --- a/bigboot_setup_environment.yml +++ b/bigboot_setup_environment.yml @@ -21,10 +21,10 @@ - name: Set logical volume information ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml - - name: Run pre-checks to verify environment - ansible.builtin.import_tasks: tasks/pre-checks.yml - when: - - bigboot_execute_bigboot | bool + # - name: Run pre-checks to verify environment + # ansible.builtin.import_tasks: tasks/pre-checks.yml + # when: + # - bigboot_execute_bigboot | bool - name: Set environment for subsequent workflow nodes ansible.builtin.set_stats: @@ -37,7 +37,6 @@ 'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv, 'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device, 'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int, - 'bigboot_size': bigboot_size, 'ip_addresses': ansible_all_ipv4_addresses, 'server_hostname': ansible_hostname } diff --git a/tasks/cleanup.yml b/tasks/cleanup.yml index 1e30e8f..a1eeb3f 100644 --- a/tasks/cleanup.yml +++ b/tasks/cleanup.yml @@ -29,6 +29,14 @@ path: "/boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}" state: absent +- name: Disable Grub filesystem check + ansible.builtin.import_role: + name: autofsck + tasks_from: cleanup.yml + +- name: Flush handlers to remove Grub parameters for fsck + ansible.builtin.meta: flush_handlers + - name: Check for Bigboot state log and restore services to pre-Bigboot state ansible.builtin.import_tasks: tasks/restore_services.yml