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 db4e11ba
authored
Apr 28, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
6d1f9e9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
cleanserver.yml
cleanserver.yml
View file @
db4e11b
...
...
@@ -2,17 +2,17 @@
-
hosts
:
FormatAppDisk
become
:
true
tasks
:
-
name
:
Unmount
mount
:
src
:
"
{{
app_disk
}}"
state
:
unmounted
#
- name: Unmount
#
mount:
#
src: "{{ app_disk }}"
#
state: unmounted
# Read device information (always use unit when probing)
-
parted
:
device="{{ app_disk }}" unit=MiB
register
:
sdb_info
# Remove all partitions from disk
-
parted
:
device
:
"
{{
app_disk
}}"
number
:
"
{{
item.num
}}"
state
:
absent
with_items
:
-
"
{{
sdb_info.partitions
}}"
\ No newline at end of file
# - parted:
# device: "{{ app_disk }}"
# number: "{{ item.num }}"
# state: absent
# with_items:
# - "{{ sdb_info.partitions }}"
\ No newline at end of file
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