Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_mountHDD2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
sti-cluster
ansible_mountHDD2
Commits
69815c36
Commit
69815c36
authored
3 years ago
by
Pullyvan Krishnamoorthy
Browse files
Options
Downloads
Patches
Plain Diff
Add force option to format
parent
90a4e409
No related branches found
No related tags found
3 merge requests
!6
Fix mount hdd ext4
,
!5
Add umount check
,
!4
Add force option to format
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/centos.yml
+0
-1
0 additions, 1 deletion
tasks/centos.yml
tasks/debian.yml
+3
-1
3 additions, 1 deletion
tasks/debian.yml
tasks/main.yml
+0
-1
0 additions, 1 deletion
tasks/main.yml
with
3 additions
and
3 deletions
tasks/centos.yml
+
0
−
1
View file @
69815c36
...
...
@@ -45,7 +45,6 @@
-
name
:
Format filesystem
filesystem
:
fstype={{ fstype }} dev={{ dev }} force=yes
-
name
:
Mount filesystem
mount
:
fstype
:
"
{{
fstype
}}"
...
...
This diff is collapsed.
Click to expand it.
tasks/debian.yml
+
3
−
1
View file @
69815c36
...
...
@@ -33,7 +33,7 @@
when
:
"
'{{
dev
}}:
data'
in
fs.stdout"
-
name
:
Format filesystem
filesystem
:
fstype={{ fstype }} dev={{ dev }}
filesystem
:
fstype={{ fstype }} dev={{ dev }}
force
when
:
format_fs is defined and format_fs ==
true
and hdd2.stat.exists == False
-
name
:
Mount filesystem
...
...
@@ -44,3 +44,5 @@
opts
:
"
{{
opts
}}"
state
:
"
{{
state
}}"
register
:
mount_info
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
0
−
1
View file @
69815c36
---
# tasks file for mount_hdd2
-
include
:
debian.yml tags=debian
when
:
ansible_os_family == 'Debian'
...
...
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