Skip to content
Snippets Groups Projects
Commit cfefe0f1 authored by Chris Hines's avatar Chris Hines
Browse files

make ext filesystems on cinder volues

parent d8348468
No related branches found
No related tags found
No related merge requests found
--- ---
- name: Format File Systems - name: format volumes
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: mkFileSystems with_items: volumes
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: mountFileSystems with_items: volumes
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
#
#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment