truncate bigboot-noop.yml for now
This commit is contained in:
parent
842ec2bac9
commit
438c50a955
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@ filter_plugins/*.bak
|
|||||||
python/
|
python/
|
||||||
collections/ansible_collections
|
collections/ansible_collections
|
||||||
roles/autofsck
|
roles/autofsck
|
||||||
|
*.bak
|
||||||
|
@ -18,79 +18,17 @@
|
|||||||
- name: Capture logical volume information
|
- name: Capture logical volume information
|
||||||
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
||||||
|
|
||||||
|
- name: Set environment for subsequent workflow nodes
|
||||||
- name: Perform a ReaR backup if any disk modifications are to be made
|
ansible.builtin.set_stats:
|
||||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
data:
|
||||||
when:
|
bigboot_data: "{{ bigboot_data | default({}) |
|
||||||
- bigboot_execute_bigboot | default('false') | bool
|
combine({inventory_hostname:
|
||||||
- not bigboot_skip_rear_backup | default('true') | bool
|
{
|
||||||
|
'bigboot_execute_bigboot': bigboot_execute_bigboot,
|
||||||
|
'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv,
|
||||||
- name: Perform logical volume and boot parition resizing as needed
|
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
|
||||||
hosts: all
|
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int,
|
||||||
become: true
|
'bigboot_size': bigboot_size,
|
||||||
gather_facts: true
|
'bigboot_skip_rear_backup': bigboot_skip_rear | default('false')
|
||||||
strategy: free
|
}
|
||||||
|
})}}"
|
||||||
vars_files:
|
|
||||||
- bigboot_vars.yml
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Perform service and filesystem checks prior to Bigboot execution
|
|
||||||
when:
|
|
||||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
|
||||||
block:
|
|
||||||
# - name: Check for and disable services exceeding the timeout threshold
|
|
||||||
# ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
|
||||||
|
|
||||||
- name: Enable Grub filesystem check
|
|
||||||
ansible.builtin.import_role:
|
|
||||||
name: autofsck
|
|
||||||
tasks_from: main.yml
|
|
||||||
|
|
||||||
- name: Flush handlers
|
|
||||||
ansible.builtin.meta: flush_handlers
|
|
||||||
|
|
||||||
# Make sure to update the reboot code for the WF environment
|
|
||||||
- name: Reboot to run filesystem checks
|
|
||||||
ansible.builtin.reboot:
|
|
||||||
|
|
||||||
- name: Disable Grub filesystem check
|
|
||||||
ansible.builtin.import_role:
|
|
||||||
name: autofsck
|
|
||||||
tasks_from: cleanup.yml
|
|
||||||
|
|
||||||
- name: Flush handlers
|
|
||||||
ansible.builtin.meta: flush_handlers
|
|
||||||
|
|
||||||
|
|
||||||
- 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:
|
|
||||||
- "device: {{ bigboot_adjacent_lvm_device }}"
|
|
||||||
- "size : {{ bigboot_lv_shrink_size | int }}"
|
|
||||||
when:
|
|
||||||
- bigboot_execute_shrink_lv | bool
|
|
||||||
|
|
||||||
- name: Expand the /boot partition as requested
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "{{ bigboot_size }}"
|
|
||||||
when:
|
|
||||||
- bigboot_execute_bigboot | bool
|
|
||||||
|
|
||||||
# - name: Re-enabling services previously disabled
|
|
||||||
# ansible.builtin.service:
|
|
||||||
# name: "{{ item }}"
|
|
||||||
# state: started
|
|
||||||
# enabled: true
|
|
||||||
# loop: "{{ bigboot_systemd_disabled_services }}"
|
|
||||||
# when:
|
|
||||||
# - bigboot_systemd_disabled_services is defined
|
|
||||||
# - bigboot_systemd_disabled_services | length > 0
|
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
|
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
|
||||||
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int,
|
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int,
|
||||||
'bigboot_size': bigboot_size,
|
'bigboot_size': bigboot_size,
|
||||||
'bigboot_skip_rear_backup': bigboot_skip_rear,
|
|
||||||
'bigboot_skip_rear_backup': bigboot_skip_rear | default('false')
|
'bigboot_skip_rear_backup': bigboot_skip_rear | default('false')
|
||||||
}
|
}
|
||||||
})}}"
|
})}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user