Commit 1bd14f32 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

Merge branch '5-lvm2-tasks-feiler-ofte-om-en-har-mange-volumer' into 'master'

Resolve "lvm2 tasks feiler ofte om en har mange volumer"

Closes #5

See merge request uib-ub/roller-ansible/centos7-system!5
parents 2933fe1d 08850152
......@@ -19,6 +19,7 @@
pvs: "{{ item.device }}"
state: "present"
with_items: "{{ volumes_add }}"
register: "volume_group"
when: "not skip_vg_create | default (false) | bool"
- name: "Creating new logical volumes"
......@@ -28,12 +29,14 @@
size: "100%FREE"
shrink: "no"
with_items: "{{ volumes_add }}"
when: "volume_group.changed | bool"
- name: "Creating new filesystems on new volumes"
filesystem:
fstype: "{{ item.fs_type }}"
dev: "/dev/{{ item.vgname }}/{{ item.lvname }}"
with_items: "{{ volumes_add }}"
when: "volume_group.changed | bool"
- name: "Create mount points"
file:
......
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