This commit is contained in:
Chris Hammer 2024-07-19 21:46:18 -04:00
parent 58ffce84ed
commit eb2e9eb4ae
4 changed files with 16 additions and 6 deletions

View File

@ -74,11 +74,16 @@
when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
- name: Get the list of services on the host
ansible.builtin.service_facts:
- name: Re-enabling Docker service
ansible.builtin.service:
name: docker.service
state: started
enabled: true
when:
- "'docker.service' in ansible_facts['services']"
- name: Re-enabling services previously disabled
ansible.builtin.service:

View File

@ -2,5 +2,6 @@
- name: Perform a ReaR backup if any disk modifications are to be made
ansible.builtin.import_playbook: rhc.rear.rear_backup
when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default('false') | bool
- not bigboot_data[inventory_hostname]['bigboot_skip_rear_backup'] | default('true') | bool
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
- not bigboot_skip_rear | default('true') | bool

View File

@ -12,11 +12,16 @@
- name: Cleanup from any previous executions
ansible.builtin.import_tasks: tasks/cleanup.yml
- name: Get the list of services on the host
ansible.builtin.service_facts:
- name: Disable Docker service due to incompatibility
ansible.builtin.service:
name: docker.service
state: stopped
enabled: false
when:
- "'docker.service' in ansible_facts['services']"
- name: Capture boot device details
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
@ -34,9 +39,8 @@
'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv,
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int,
'bigboot_size': bigboot_size,
'bigboot_skip_rear_backup': bigboot_skip_rear | default('false')
'bigboot_size': bigboot_size
}
})}}"
}) }}"
...

View File

@ -9,7 +9,7 @@ bigboot_reboot_timeout: 1800
bigboot_skip_rear_backup: false
# Max value in minutes for the timeout threshold:
bigboot_service_max_timeout: 2
bigboot_service_max_timeout: 5
# List of services which will be excluded from being
# disabled during Bigboot execution: