Fix to allow per-host Bigboot executions
This commit is contained in:
@ -11,7 +11,8 @@
|
||||
tasks:
|
||||
- name: Perform service and filesystem checks prior to Bigboot execution
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
|
||||
block:
|
||||
# - name: Check for and disable services exceeding the timeout threshold
|
||||
# ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
||||
@ -52,13 +53,13 @@
|
||||
- device: "{{ bigboot_adjacent_lvm_device }}"
|
||||
size: "{{ bigboot_lv_shrink_size | int }}"
|
||||
when:
|
||||
- bigboot_execute_shrink_lv | bool
|
||||
- bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
|
||||
- name: Expand the /boot partition as requested
|
||||
ansible.builtin.import_role:
|
||||
name: infra.lvm_snapshots.bigboot
|
||||
when:
|
||||
- bigboot_execute_bigboot | bool
|
||||
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
|
||||
|
||||
# - name: Re-enabling services previously disabled
|
||||
# ansible.builtin.service:
|
||||
|
Reference in New Issue
Block a user