fixes for multiple hosts
This commit is contained in:
parent
164307eab7
commit
4ee78bead1
@ -5,3 +5,4 @@ skip_list:
|
||||
- no-changed-when
|
||||
- run-once[play]
|
||||
- name[template]
|
||||
- jinja[spacing]
|
||||
|
@ -11,8 +11,8 @@
|
||||
tasks:
|
||||
- name: Perform service and filesystem checks prior to Bigboot execution
|
||||
when:
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | default(false) | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool)
|
||||
block:
|
||||
- name: Check for and disable services exceeding the timeout threshold
|
||||
ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
||||
@ -23,7 +23,7 @@
|
||||
The following services were disabled, and will be re-enabled post
|
||||
Bigboot execution:
|
||||
|
||||
{{ bigboot_systemd_disabled_services | flatten }}
|
||||
{{ bigboot_systemd_disabled_services | list | flatten }}
|
||||
when:
|
||||
- bigboot_systemd_disabled_services is defined
|
||||
- bigboot_systemd_disabled_services | length > 0
|
||||
|
@ -17,6 +17,6 @@
|
||||
- name: Perform a ReaR backup before the /boot expansion
|
||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
||||
when:
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | default(false) | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool)
|
||||
- not bigboot_rear_backup_skip | default(false) | bool
|
||||
|
@ -35,6 +35,9 @@
|
||||
|
||||
- name: Set environment for subsequent workflow nodes
|
||||
ansible.builtin.set_stats:
|
||||
aggregate: false
|
||||
per_host: false
|
||||
|
||||
data:
|
||||
bigboot_data: "{{ bigboot_data | default({}) |
|
||||
combine({inventory_hostname:
|
||||
@ -46,12 +49,12 @@
|
||||
'bigboot_size': bigboot_size
|
||||
}
|
||||
}) }}"
|
||||
rear_backup_skip: "{{ bigboot_rear_backup_skip | default(false) }}"
|
||||
|
||||
- name: Perform a ReaR backup if any disk modifications are to be made
|
||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
||||
when:
|
||||
- bigboot_execute_bigboot | bool or bigboot_execute_bigboot | bool
|
||||
- bigboot_execute_shrink_lv | default(false) | bool
|
||||
or bigboot_execute_bigboot | default(false) | bool
|
||||
- not bigboot_rear_backup_skip | default(false) | bool
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user