blob: 34cbab0f1ba3849eefc0d3b3ae780920656e062a (
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: "{{ docker_lvm.vg }}"
lv: "{{ docker_lvm.lv }}"
size: "{{ docker_lvm.size }}"
- name: create filesystem
filesystem:
fstype: "{{ docker_lvm.fs }}"
dev: "/dev/mapper/{{ docker_lvm.vg | replace('-', '--') }}-{{ docker_lvm.lv | replace('-', '--') }}"
- name: mount filesytem
mount:
src: "/dev/mapper/{{ docker_lvm.vg | replace('-', '--') }}-{{ docker_lvm.lv | replace('-', '--') }}"
path: /var/lib/docker
fstype: "{{ docker_lvm.fs }}"
state: mounted
|