Commit 0f678747 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

lint etter volume

parent 7ef61c50
......@@ -11,16 +11,16 @@
, 'mount_point': item.mount_point
, 'fs_type': item.fs_type| default('ext4')}] }}"
with_items: "{{ volumes }}"
- name: "Create new volume groups"
lvg:
lvg:
vg: "{{ item.vgname }}"
pvs: "{{ item.device }}"
state: "present"
with_items: "{{ volumes_add }}"
- name: "Creating new logical volumes"
lvol:
lvol:
vg: "{{ item.vgname }}"
lv: "{{ item.lvname }}"
size: "100%FREE"
......@@ -28,7 +28,7 @@
with_items: "{{ volumes_add }}"
- name: "Creating new filesystems on new volumes"
filesystem:
filesystem:
fstype: "{{ item.fs_type }}"
dev: "/dev/{{ item.vgname }}/{{ item.lvname }}"
with_items: "{{ volumes_add }}"
......@@ -37,13 +37,13 @@
file:
path: "{{ item.mount_point }}"
state: "directory"
mode: 0755
mode: 0755
with_items: "{{ volumes_add }}"
- name: "Mounting new filesystems"
mount:
mount:
name: "{{ item.mount_point }}"
src: "/dev/{{ item.vgname }}/{{ item.lvname }}"
fstype: "{{ item.fs_type }}"
state: "mounted"
with_items: "{{ volumes_add }}"
with_items: "{{ volumes_add }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment