Add fsck cleanup to cleanup.yml; comment out pre-checks for now

This commit is contained in:
Chris Hammer 2024-08-27 15:33:07 -04:00
parent 7b447e0fd2
commit f2e6dcc9e5
2 changed files with 12 additions and 5 deletions

View File

@ -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
}

View File

@ -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