lvm

Source Code Build Status License: MIT

Configure a list of LVM volumes.


Default Variables

lvm_packages

Default value

lvm_packages:
  - lvm2

lvm_volumes

Define a list of LVM volumes. The state parameter is related to the possible state values of Ansibles mount module.

Default value

lvm_volumes: []

Example usage

lvm_volumes:
  - name: lv_data
    group: vg_data
    disks:
      - /dev/sda
    fstype: ext4
    size: 100g
    resizefs: True
    mountpoint: /mnt/data
    mountopts:
      - ro
      - noauto
    state: mounted

Dependencies

None.