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
Merge requests
!6
Fix mount hdd ext4
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix mount hdd ext4
fixMountHDDExt4
into
master
Overview
0
Commits
9
Pipelines
0
Changes
2
Merged
Pullyvan Krishnamoorthy
requested to merge
fixMountHDDExt4
into
master
3 years ago
Overview
0
Commits
9
Pipelines
0
Changes
2
Expand
Remove all unnecessary code by adding ansible supported command
👍
0
👎
0
Merge request reports
Viewing commit
5ad089e9
Prev
Next
Show latest version
2 files
+
25
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
5ad089e9
add umount check and force format which will be not fatal error in case it does not format
· 5ad089e9
Pullyvan Krishnamoorthy
authored
3 years ago
tasks/centos.yml
+
12
−
2
Options
@@ -14,6 +14,12 @@
-
parted.x86_64
-
parted-devel.x86_64
-
name
:
Unmount a mounted volume
ansible.posix.mount
:
path
:
/home
state
:
unmounted
ignore_errors
:
yes
-
name
:
Create a new partition on hdd2
become
:
yes
parted
:
@@ -42,8 +48,12 @@
format_fs
:
true
when
:
"
'{{
dev
}}:
data'
in
fs.stdout"
-
name
:
Format filesystem
filesystem
:
fstype={{ fstype }} dev={{ dev }} force=yes
-
name
:
Format a ext4 filesystem on {{ dev }}
community.general.filesystem
:
fstype
:
"
{{
fstype
}}"
dev
:
"
{{
dev
}}"
force
:
yes
-
name
:
Mount filesystem
mount
:
Loading