Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
cfefe0f1
Commit
cfefe0f1
authored
9 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
make ext filesystems on cinder volues
parent
d8348468
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/make_filesystems/tasks/main.yml
+26
-8
26 additions, 8 deletions
roles/make_filesystems/tasks/main.yml
with
26 additions
and
8 deletions
roles/make_filesystems/tasks/main.yml
+
26
−
8
View file @
cfefe0f1
---
---
-
name
:
F
ormat
File System
s
-
name
:
f
ormat
volume
s
filesystem
:
fstype={{ item.fstype }} dev={{
item.dev }} opts={{ item.opts
}}
filesystem
:
fstype={{ item.fstype }} dev={{
hostvars[ansible_hostname]['ansible_host_volumes'][item.name]['dev']
}}
with_items
:
mkFileSystem
s
with_items
:
volume
s
sudo
:
true
sudo
:
true
when
:
mkFileSystems is defined
-
name
:
Mount device
-
name
:
format volumes
mount
:
name={{ item.
name }} src={{ item.dev
}} fstype={{ item.fstype }}
opts={{ item.opts
}} state=mounted
mount
:
name={{ item.
mntpt
}} fstype={{ item.fstype }}
src={{ hostvars[ansible_hostname]['ansible_host_volumes'][item.name]['dev']
}} state=mounted
with_items
:
mountFileSystem
s
with_items
:
volume
s
sudo
:
true
sudo
:
true
when
:
mountFileSystems is defined
-
name
:
symlink volumes
file
:
force=yes state=link src="{{ item.mntpt }}" path="{{ item.linkto }}"
when
:
item.linkto is defined
with_items
:
volumes
sudo
:
true
#- name: Format File Systems
# filesystem: fstype={{ item.fstype }} dev={{ item.dev }} opts={{ item.opts }}
# with_items: mkFileSystems
# sudo: true
# when: mkFileSystems is defined
#
#- name: Mount device
# mount: name={{ item.name }} src={{ item.dev }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
# with_items: mountFileSystems
# sudo: true
# when: mountFileSystems is defined
#
#
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