|
|
|
|
|
|
|
|
{%- for dev in vg.devices %} |
|
|
{%- for dev in vg.devices %} |
|
|
lvm_{{ vgname }}_pv_{{ dev }}: |
|
|
lvm_{{ vgname }}_pv_{{ dev }}: |
|
|
lvm.pv_present: |
|
|
lvm.pv_present: |
|
|
- name: dev |
|
|
|
|
|
|
|
|
- name: {{ dev }} |
|
|
- require: |
|
|
- require: |
|
|
- pkg: linux_lvm_pkgs |
|
|
- pkg: linux_lvm_pkgs |
|
|
- require_in: |
|
|
- require_in: |
|
|
|
|
|
|
|
|
lvm_vg_{{ vgname }}: |
|
|
lvm_vg_{{ vgname }}: |
|
|
lvm.vg_present: |
|
|
lvm.vg_present: |
|
|
- name: {{ vgname }} |
|
|
- name: {{ vgname }} |
|
|
- devices: {{ vg.devices }} |
|
|
|
|
|
|
|
|
- devices: {{ vg.devices|join(',') }} |
|
|
|
|
|
|
|
|
{%- for lvname, volume in vg.volume.iteritems() %} |
|
|
{%- for lvname, volume in vg.volume.iteritems() %} |
|
|
|
|
|
|