disable docker if found; re-enable post-bigboot

This commit is contained in:
Chris Hammer 2024-07-18 14:15:54 -04:00
parent 209edd45a4
commit 549eae7551

View File

@ -14,6 +14,12 @@
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
block:
- name: Disabling Docker service due to overlay filesystem incompatibility
ansible.builtin.service:
name: docker.service
state: stopped
enabled: false
- name: Check for and disable services exceeding the timeout threshold
ansible.builtin.import_tasks: tasks/check_systemd_services.yml
@ -23,7 +29,7 @@
The following services were disabled, and will be re-enabled post
Bigboot execution:
{{ bigboot_systemd_disabled_services }}
{{ bigboot_systemd_disabled_services | flatten }}
when:
- bigboot_systemd_disabled_services is defined
- bigboot_systemd_disabled_services | length > 0
@ -74,6 +80,12 @@
when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
- name: Re-abling Docker service due to overlay filesystem incompatibility
ansible.builtin.service:
name: docker.service
state: stopped
enabled: false
- name: Re-enabling services previously disabled
ansible.builtin.service:
name: "{{ item }}"