move fsck code to a block
This commit is contained in:
parent
942afbf205
commit
08168aafa1
@ -6,12 +6,14 @@
|
|||||||
strategy: free
|
strategy: free
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- 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
|
- name: Enable filesystem check prior to Bigboot execution
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
name: autofsck
|
name: autofsck
|
||||||
tasks_from: main.yml
|
tasks_from: main.yml
|
||||||
when:
|
|
||||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
|
||||||
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
@ -24,8 +26,7 @@
|
|||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
name: autofsck
|
name: autofsck
|
||||||
tasks_from: cleanup.yml
|
tasks_from: cleanup.yml
|
||||||
when:
|
|
||||||
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
|
||||||
|
|
||||||
- name: Extend the timeout values for physical hosts
|
- name: Extend the timeout values for physical hosts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user