fixes for multiple hosts

This commit is contained in:
2024-07-23 15:20:10 -04:00
parent 164307eab7
commit 4ee78bead1
4 changed files with 11 additions and 7 deletions

View File

@ -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