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
!7
use variables instead of hardcoded values
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
use variables instead of hardcoded values
use_variables
into
master
Overview
1
Commits
1
Pipelines
0
Changes
3
Merged
Fabio Santaniello
requested to merge
use_variables
into
master
3 years ago
Overview
1
Commits
1
Pipelines
0
Changes
3
Expand
👍
0
👎
0
Merge request reports
Viewing commit
2f0250e8
Show latest version
3 files
+
246
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
2f0250e8
use variables instead of hardcoded values
· 2f0250e8
Fabio Santaniello
authored
3 years ago
tasks/centos.yml
+
13
−
14
Options
@@ -4,7 +4,6 @@
-
name
:
"
Check
if
{{
dev
}}
exists"
stat
:
path
:
"
{{
dev
}}"
register
:
hdd2
-
name
:
install parted
become
:
yes
@@ -14,30 +13,30 @@
-
parted.x86_64
-
parted-devel.x86_64
-
name
:
Unmount a mounted
/home
-
name
:
Unmount a mounted
folder
ansible.posix.mount
:
path
:
/home
path
:
"
{{
mount
}}"
state
:
unmounted
ignore_errors
:
yes
-
name
:
Create a
ext4
filesystem on
/
dev
/nvme0n1
-
name
:
Create a filesystem on dev
ice
community.general.filesystem
:
fstype
:
ext4
dev
:
/dev/nvme0n1
fstype
:
"
{{
fstype
}}"
dev
:
"
{{
dev
}}"
force
:
yes
-
name
:
Mount up device
by /dev/nvme0n1 on /home
in fstab
-
name
:
Mount up device
on folder
in fstab
mount
:
path
:
/home
src
:
/dev/nvme0n1
fstype
:
ext4
path
:
"
{{
mount
}}"
src
:
"
{{
dev
}}"
fstype
:
"
{{
fstype
}}"
state
:
present
-
name
:
Remount a mounted volume
/home
-
name
:
Remount a mounted volume
ansible.posix.mount
:
path
:
/home
src
:
/dev/nvme0n1
fstype
:
ext4
path
:
"
{{
mount
}}"
src
:
"
{{
dev
}}"
fstype
:
"
{{
fstype
}}"
state
:
mounted
Loading