Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible Framework Container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Playbooks
Ansible Framework Container
Commits
feb1a763
Commit
feb1a763
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Extends mdstat playbook and script to optionally repair other partitions as well
parent
897712d8
No related branches found
No related tags found
No related merge requests found
Pipeline
#31229
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
playbooks/mdstat.yml
+4
-4
4 additions, 4 deletions
playbooks/mdstat.yml
scripts/mdstat.yml
+10
-0
10 additions, 0 deletions
scripts/mdstat.yml
with
14 additions
and
4 deletions
playbooks/mdstat.yml
+
4
−
4
View file @
feb1a763
...
...
@@ -11,19 +11,19 @@
become
:
yes
tasks
:
-
name
:
Write to action file
shell
:
echo 'repair' >/sys/block/
md2
/md/sync_action
shell
:
echo 'repair' >/sys/block/
{{ partition }}
/md/sync_action
-
name
:
Wait for repair to complete
wait_for
:
path
:
/sys/block/
md2
/md/sync_action
path
:
/sys/block/
{{ partition }}
/md/sync_action
search_regex
:
idle
delay
:
60
sleep
:
60
timeout
:
18000
-
name
:
Write to action file
shell
:
echo 'check' >/sys/block/
md2
/md/sync_action
shell
:
echo 'check' >/sys/block/
{{ partition }}
/md/sync_action
-
name
:
Wait for check to complete
wait_for
:
path
:
/sys/block/
md2
/md/sync_action
path
:
/sys/block/
{{ partition }}
/md/sync_action
search_regex
:
idle
delay
:
60
sleep
:
60
...
...
This diff is collapsed.
Click to expand it.
scripts/mdstat.yml
+
10
−
0
View file @
feb1a763
---
description
:
Run mdstat tasks
cli
:
options
:
-
name
:
partition
default
:
md2
help
:
Which partition to repair
arguments
:
playbook
:
mdstat
command
:
-
name
:
extra-vars
value
:
partition=%s
args
:
-
partition
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment