diff --git a/bigboot_execute_resize.yml b/bigboot_execute_resize.yml index 7b51480..3514f9e 100644 --- a/bigboot_execute_resize.yml +++ b/bigboot_execute_resize.yml @@ -6,26 +6,27 @@ strategy: free tasks: - - name: Enable filesystem check prior to Bigboot execution - 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 filesystem check prior to Bigboot execution + ansible.builtin.import_role: + name: autofsck + tasks_from: main.yml - - name: Flush handlers - ansible.builtin.meta: flush_handlers + - name: Flush handlers + ansible.builtin.meta: flush_handlers - # Make sure to update the reboot code for the WF environment - - name: Reboot to run filesystem check - ansible.builtin.reboot: + # Make sure to update the reboot code for the WF environment + - name: Reboot to run filesystem check + ansible.builtin.reboot: + + - name: Disable filesystem check prior to Bigboot execution + ansible.builtin.import_role: + name: autofsck + tasks_from: cleanup.yml - - name: Disable filesystem check prior to Bigboot execution - ansible.builtin.import_role: - name: autofsck - tasks_from: cleanup.yml - when: - - (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool) - name: Extend the timeout values for physical hosts ansible.builtin.set_fact: