blob: d6233ff713f1488844adca2b38b44a8c7b99a225 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: create logical volume
lvol:
vg: "{{ containerd_lvm.vg }}"
lv: "{{ containerd_lvm.lv }}"
size: "{{ containerd_lvm.size }}"
- name: create filesystem
filesystem:
fstype: "{{ containerd_lvm.fs }}"
dev: "/dev/mapper/{{ containerd_lvm.vg | replace('-', '--') }}-{{ containerd_lvm.lv | replace('-', '--') }}"
- name: mount filesytem
mount:
src: "/dev/mapper/{{ containerd_lvm.vg | replace('-', '--') }}-{{ containerd_lvm.lv | replace('-', '--') }}"
path: /var/lib/containerd
fstype: "{{ containerd_lvm.fs }}"
state: mounted
|