update bigboot-noop.yml to bring it up to speed
This commit is contained in:
@ -10,6 +10,9 @@
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Cleanup from any previous executions
|
||||
ansible.builtin.import_tasks: tasks/cleanup.yml
|
||||
|
||||
- name: Capture boot device details
|
||||
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
||||
|
||||
@ -30,6 +33,20 @@
|
||||
strategy: free
|
||||
|
||||
tasks:
|
||||
- name: Run a filesystem check prior to performing disk activities
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: main.yml
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
|
||||
- name: Extend the timeout values for physical hosts
|
||||
ansible.builtin.set_fact:
|
||||
initramfs_post_reboot_delay: 300
|
||||
initramfs_reboot_timeout: 14400
|
||||
when:
|
||||
- "'host' in ansible_virtualization_role"
|
||||
|
||||
- name: Shrink the logical volume to support /boot expansion
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
@ -41,4 +58,23 @@
|
||||
- name: Expand the /boot partition as requested
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ bigboot_size }}"
|
||||
when: bigboot_execute_bigboot | bool
|
||||
when:
|
||||
- bigboot_execute_bigboot | bool
|
||||
|
||||
- name: Reboot the host
|
||||
ansible.builtin.reboot:
|
||||
msg: Reboot by Ansible
|
||||
post_reboot_delay: 30
|
||||
connect_timeout: 10
|
||||
reboot_timeout: 120
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
|
||||
- name: Cleanup Grub menu parameters for fsck
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: cleanup.yml
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user