add service disable on threshold timeout; cleanup bigboot-noop.yml
This commit is contained in:
@ -33,15 +33,33 @@
|
||||
strategy: free
|
||||
|
||||
tasks:
|
||||
- name: Add Grub menu parameters for fsck
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: main.yml
|
||||
- name: Perform filesystem check prior to Bigboot execution
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
block:
|
||||
- name: Enable Grub filesystem check
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: main.yml
|
||||
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
# Make sure to update the reboot code for the WF environment
|
||||
- name: Reboot to run filesystem checks
|
||||
ansible.builtin.reboot:
|
||||
|
||||
- name: Disable Grub filesystem check
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: cleanup.yml
|
||||
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: Check for and disable services exceeding the timeout threshold
|
||||
ansible.builtin.import_tasks: tasks/check_systemd_services.yml
|
||||
|
||||
- name: Flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: Extend the timeout values for physical hosts
|
||||
ansible.builtin.set_fact:
|
||||
@ -64,22 +82,9 @@
|
||||
when:
|
||||
- bigboot_execute_bigboot | bool
|
||||
|
||||
# this reboot is just for *my* tesitng; at this point we'd have already
|
||||
# rebooted at least once which would have ran the fsck
|
||||
- name: Reboot the host
|
||||
ansible.builtin.reboot:
|
||||
msg: Reboot by Ansible
|
||||
post_reboot_delay: 30
|
||||
connect_timeout: 10
|
||||
reboot_timeout: 120
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
|
||||
- name: Cleanup Grub menu parameters for fsck
|
||||
ansible.builtin.import_role:
|
||||
name: autofsck
|
||||
tasks_from: cleanup.yml
|
||||
when:
|
||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
||||
|
||||
...
|
||||
- name: Re-enabling services previously disabled
|
||||
ansible.builtin.service:
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
enabled: true
|
||||
loop: "{{ bigboot_systemd_disabled_services }}"
|
||||
|
Reference in New Issue
Block a user