lvm
LVM
This role allows to create a volume group with logical volume and mount it to fstab.
Role Variables
vgs.vg
- volume group namevgs.pvs
- physical devicelvs.lv
- logical volume namelvs.size
- logical volume sizelvs.path
- logical volume path to mount
Example Playbook
- hosts: localhost
become: yes
roles:
- pogosoftware.lvm
vars:
vgs:
- vg: data
pvs: /dev/sdc
lvs:
- lv: docker
size: +80%VG
path: /var/lib/docker
- lv: logs
size: +20%VG
path: /var/log
Install
ansible-galaxy install pogosoftware/ansible-role-lvm
License
mit
Downloads
283
Owner