Skip to content
Snippets Groups Projects
Commit fbab05c2 authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve mdstat playbook

parent 5284a333
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,19 @@
tasks:
- name: Write to action file
shell: echo 'repair' >/sys/block/md2/md/sync_action
- name: Wait for repair to complete
wait_for:
path: /sys/block/md2/md/sync_action
search_regex: idle
delay: 60
sleep: 60
timeout: 6000
- name: Write to action file
shell: echo 'check' >/sys/block/md2/md/sync_action
- name: Wait for check to complete
wait_for:
path: /sys/block/md2/md/sync_action
search_regex: idle
delay: 60
sleep: 60
timeout: 6000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment