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