pogosoftware.lvm
LVM (Logical Volume Manager)
This role lets you create a volume group with logical volumes and mount it in fstab.
Role Variables
vgs.vg
- The name of the volume groupvgs.pvs
- The physical device to uselvs.lv
- The name of the logical volumelvs.size
- The size of the logical volumelvs.path
- The path where the logical volume will be mounted
Example Playbook
- hosts: localhost
become: yes
roles:
- pogosoftware.lvm
vars:
vgs:
- vg: data # Volume group name
pvs: /dev/sdc # Physical device
lvs:
- lv: docker # Logical volume name for Docker
size: +80%VG # Size of the logical volume
path: /var/lib/docker # Path to mount the logical volume
- lv: logs # Logical volume name for logs
size: +20%VG # Size of the logical volume
path: /var/log # Path to mount the logical volume
Informazioni sul progetto
This role allows you to create and manage lvm volumes
Installa
ansible-galaxy install pogosoftware.lvm
Licenza
mit
Download
293
Proprietario