Fix to allow per-host Bigboot executions
This commit is contained in:
parent
b42b725c35
commit
c34ecde485
@ -11,7 +11,8 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Perform service and filesystem checks prior to Bigboot execution
|
- name: Perform service and filesystem checks prior to Bigboot execution
|
||||||
when:
|
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:
|
block:
|
||||||
# - name: Check for and disable services exceeding the timeout threshold
|
# - name: Check for and disable services exceeding the timeout threshold
|
||||||
# ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
# ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
||||||
@ -52,13 +53,13 @@
|
|||||||
- device: "{{ bigboot_adjacent_lvm_device }}"
|
- device: "{{ bigboot_adjacent_lvm_device }}"
|
||||||
size: "{{ bigboot_lv_shrink_size | int }}"
|
size: "{{ bigboot_lv_shrink_size | int }}"
|
||||||
when:
|
when:
|
||||||
- bigboot_execute_shrink_lv | bool
|
- bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||||
|
|
||||||
- name: Expand the /boot partition as requested
|
- name: Expand the /boot partition as requested
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
name: infra.lvm_snapshots.bigboot
|
name: infra.lvm_snapshots.bigboot
|
||||||
when:
|
when:
|
||||||
- bigboot_execute_bigboot | bool
|
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
|
||||||
|
|
||||||
# - name: Re-enabling services previously disabled
|
# - name: Re-enabling services previously disabled
|
||||||
# ansible.builtin.service:
|
# ansible.builtin.service:
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
- name: Perform a ReaR backup if any disk modifications are to be made
|
- name: Perform a ReaR backup if any disk modifications are to be made
|
||||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
||||||
when:
|
when:
|
||||||
- bigboot_execute_bigboot | default('false') | bool
|
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default('false') | bool
|
||||||
- not bigboot_skip_rear_backup | default('true') | bool
|
- not bigboot_data[inventory_hostname]['bigboot_skip_rear_backup'] | default('true') | bool
|
||||||
|
@ -21,13 +21,17 @@
|
|||||||
- name: Set environment for subsequent workflow nodes
|
- name: Set environment for subsequent workflow nodes
|
||||||
ansible.builtin.set_stats:
|
ansible.builtin.set_stats:
|
||||||
data:
|
data:
|
||||||
bigboot_execute_bigboot: "{{ bigboot_execute_bigboot }}"
|
bigboot_data: "{{ bigboot_data | default({}) |
|
||||||
bigboot_execute_shrink_lv: "{{ bigboot_execute_shrink_lv }}"
|
combine({inventory_hostname:
|
||||||
bigboot_adjacent_lvm_device: "{{ bigboot_adjacent_lvm_device }}"
|
{
|
||||||
bigboot_lv_shrink_size: "{{ bigboot_lv_shrink_size | int }}"
|
'bigboot_execute_bigboot': bigboot_execute_bigboot,
|
||||||
bigboot_size: "{{ bigboot_size }}"
|
'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv,
|
||||||
bigboot_skip_rear_backup: "{{ bigboot_skip_rear | default('false') }}"
|
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
|
||||||
per_host: false
|
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int,
|
||||||
aggregate: false
|
'bigboot_size': bigboot_size,
|
||||||
|
'bigboot_skip_rear_backup': bigboot_skip_rear,
|
||||||
|
'bigboot_skip_rear_backup': bigboot_skip_rear | default('false')
|
||||||
|
}
|
||||||
|
})}}"
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user