mg
169abbedff
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#363 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
29 lines
679 B
YAML
29 lines
679 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
vars:
|
|
lvm_groups:
|
|
- vgname: my_vg
|
|
disks:
|
|
- /dev/vdb
|
|
create: true
|
|
lvnames:
|
|
- lvname: my_lv
|
|
size: 40%VG
|
|
opts: "--wipesignatures y"
|
|
create: true
|
|
filesystem: ext4
|
|
mount: true
|
|
mntp: "/var/lib/mountpoint"
|
|
- lvname: my_lw
|
|
size: 20%VG
|
|
opts: "--wipesignatures y"
|
|
mount: true
|
|
create: true
|
|
filesystem: xfs
|
|
mntp: "/var/lib/mountpoint2"
|
|
manage_lvm: true
|
|
tasks:
|
|
- name: "Include lvm"
|
|
include_role:
|
|
name: "ansible-manage-lvm"
|