Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
common-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c465019b
authored
Nov 30, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit disk name from /dev/vdb to /dev/sdb
1 parent
d1a07ab0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
formatparition.yml
mountpartition.yml
partitions.yml
formatparition.yml
View file @
c465019
...
...
@@ -11,7 +11,7 @@
-
{
device
:
/dev/vdc2
}
-
{
device
:
/dev/vdc3
}
-
{
device
:
/dev/vdc4
}
-
hosts
:
v
db-disk
-
hosts
:
s
db-disk
become
:
true
tasks
:
-
name
:
"
Format
disk:
\"
{{
item.device
}}
\"
using
etx4"
...
...
@@ -19,8 +19,8 @@
dev
:
"
{{
item.device
}}"
fstype
:
ext4
with_items
:
-
{
device
:
/dev/
v
db1
}
-
{
device
:
/dev/
v
db2
}
-
{
device
:
/dev/
v
db3
}
-
{
device
:
/dev/
v
db4
}
-
{
device
:
/dev/
s
db1
}
-
{
device
:
/dev/
s
db2
}
-
{
device
:
/dev/
s
db3
}
-
{
device
:
/dev/
s
db4
}
mountpartition.yml
View file @
c465019
...
...
@@ -13,7 +13,7 @@
-
{
device
:
/dev/vdc2
,
path
:
/upload
}
-
{
device
:
/dev/vdc3
,
path
:
/archive
}
-
{
device
:
/dev/vdc4
,
path
:
/data
}
-
hosts
:
v
db-disk
-
hosts
:
s
db-disk
become
:
true
tasks
:
-
name
:
"
Mount
up
\"
{{
item.device
}}
\"
to
\"
{{
item.path
}}
\"
"
...
...
@@ -23,8 +23,8 @@
src
:
"
{{
item.device
}}"
path
:
"
{{
item.path
}}"
with_items
:
-
{
device
:
/dev/
v
db1
,
path
:
/opt
}
-
{
device
:
/dev/
v
db2
,
path
:
/upload
}
-
{
device
:
/dev/
v
db3
,
path
:
/archive
}
-
{
device
:
/dev/
v
db4
,
path
:
/data
}
-
{
device
:
/dev/
s
db1
,
path
:
/opt
}
-
{
device
:
/dev/
s
db2
,
path
:
/upload
}
-
{
device
:
/dev/
s
db3
,
path
:
/archive
}
-
{
device
:
/dev/
s
db4
,
path
:
/data
}
partitions.yml
View file @
c465019
...
...
@@ -16,7 +16,7 @@
-
{
device
:
"
/dev/vdc"
,
number
:
"
3"
,
start
:
"
81%"
,
end
:
"
90%"
}
-
{
device
:
"
/dev/vdc"
,
number
:
"
4"
,
start
:
"
91%"
,
end
:
"
100%"
}
-
hosts
:
v
db-disk
-
hosts
:
s
db-disk
become
:
true
tasks
:
-
name
:
Create partiton
...
...
@@ -28,7 +28,7 @@
state
:
present
# part_type: logical
with_items
:
-
{
device
:
"
/dev/
v
db"
,
number
:
"
1"
,
start
:
"
0%"
,
end
:
"
40%"
}
-
{
device
:
"
/dev/
v
db"
,
number
:
"
2"
,
start
:
"
41%"
,
end
:
"
80%"
}
-
{
device
:
"
/dev/
v
db"
,
number
:
"
3"
,
start
:
"
81%"
,
end
:
"
90%"
}
-
{
device
:
"
/dev/
v
db"
,
number
:
"
4"
,
start
:
"
91%"
,
end
:
"
100%"
}
-
{
device
:
"
/dev/
s
db"
,
number
:
"
1"
,
start
:
"
0%"
,
end
:
"
40%"
}
-
{
device
:
"
/dev/
s
db"
,
number
:
"
2"
,
start
:
"
41%"
,
end
:
"
80%"
}
-
{
device
:
"
/dev/
s
db"
,
number
:
"
3"
,
start
:
"
81%"
,
end
:
"
90%"
}
-
{
device
:
"
/dev/
s
db"
,
number
:
"
4"
,
start
:
"
91%"
,
end
:
"
100%"
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment