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 - (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool) or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
block: 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 - 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 +29,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 }} {{ bigboot_systemd_disabled_services | 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
@ -74,6 +80,12 @@
when: when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool - 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 - name: Re-enabling services previously disabled
ansible.builtin.service: ansible.builtin.service:
name: "{{ item }}" name: "{{ item }}"