re-enable service handling; add debug summary of disabled services
This commit is contained in:
parent
438c50a955
commit
209edd45a4
@ -14,8 +14,19 @@
|
|||||||
- (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: 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
|
||||||
|
|
||||||
|
- name: Services disabled notice
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: |
|
||||||
|
The following services were disabled, and will be re-enabled post
|
||||||
|
Bigboot execution:
|
||||||
|
|
||||||
|
{{ bigboot_systemd_disabled_services }}
|
||||||
|
when:
|
||||||
|
- bigboot_systemd_disabled_services is defined
|
||||||
|
- bigboot_systemd_disabled_services | length > 0
|
||||||
|
|
||||||
- name: Enable Grub filesystem check
|
- name: Enable Grub filesystem check
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
@ -63,12 +74,12 @@
|
|||||||
when:
|
when:
|
||||||
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
|
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
|
||||||
|
|
||||||
# - name: Re-enabling services previously disabled
|
- name: Re-enabling services previously disabled
|
||||||
# ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
# name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
# state: started
|
state: started
|
||||||
# enabled: true
|
enabled: true
|
||||||
# loop: "{{ bigboot_systemd_disabled_services }}"
|
loop: "{{ bigboot_systemd_disabled_services }}"
|
||||||
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user