mirror of https://github.com/ceph/ceph-ansible.git
tests: lvm_setup.yml, add carriage return
This commit adds crlf between each task. It makes the playbook more readable. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/5582/head
parent
218f4ae361
commit
8ef9fb68bc
|
@ -14,10 +14,12 @@
|
||||||
path: /run/ostree-booted
|
path: /run/ostree-booted
|
||||||
register: stat_ostree
|
register: stat_ostree
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- name: set_fact is_atomic
|
- name: set_fact is_atomic
|
||||||
set_fact:
|
set_fact:
|
||||||
is_atomic: '{{ stat_ostree.stat.exists }}'
|
is_atomic: '{{ stat_ostree.stat.exists }}'
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
# Some images may not have lvm2 installed
|
# Some images may not have lvm2 installed
|
||||||
- name: install lvm2
|
- name: install lvm2
|
||||||
package:
|
package:
|
||||||
|
@ -26,22 +28,26 @@
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
when: not is_atomic | bool
|
when: not is_atomic | bool
|
||||||
|
|
||||||
- name: create volume group
|
- name: create volume group
|
||||||
lvg:
|
lvg:
|
||||||
vg: test_group
|
vg: test_group
|
||||||
pvs: "{{ pv_devices[0] | default('/dev/sdb') }}"
|
pvs: "{{ pv_devices[0] | default('/dev/sdb') }}"
|
||||||
|
|
||||||
- name: create logical volume 1
|
- name: create logical volume 1
|
||||||
lvol:
|
lvol:
|
||||||
vg: test_group
|
vg: test_group
|
||||||
lv: data-lv1
|
lv: data-lv1
|
||||||
size: 50%FREE
|
size: 50%FREE
|
||||||
shrink: false
|
shrink: false
|
||||||
|
|
||||||
- name: create logical volume 2
|
- name: create logical volume 2
|
||||||
lvol:
|
lvol:
|
||||||
vg: test_group
|
vg: test_group
|
||||||
lv: data-lv2
|
lv: data-lv2
|
||||||
size: 100%FREE
|
size: 100%FREE
|
||||||
shrink: false
|
shrink: false
|
||||||
|
|
||||||
- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
|
- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
|
||||||
parted:
|
parted:
|
||||||
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
|
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
|
||||||
|
@ -52,6 +58,7 @@
|
||||||
label: gpt
|
label: gpt
|
||||||
state: present
|
state: present
|
||||||
tags: partitions
|
tags: partitions
|
||||||
|
|
||||||
- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
|
- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
|
||||||
parted:
|
parted:
|
||||||
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
|
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
|
||||||
|
@ -62,10 +69,12 @@
|
||||||
state: present
|
state: present
|
||||||
label: gpt
|
label: gpt
|
||||||
tags: partitions
|
tags: partitions
|
||||||
|
|
||||||
- name: create journals vg from "{{ pv_devices[1] | default('/dev/sdc') }}2"
|
- name: create journals vg from "{{ pv_devices[1] | default('/dev/sdc') }}2"
|
||||||
lvg:
|
lvg:
|
||||||
vg: journals
|
vg: journals
|
||||||
pvs: "{{ pv_devices[1] | default('/dev/sdc') }}2"
|
pvs: "{{ pv_devices[1] | default('/dev/sdc') }}2"
|
||||||
|
|
||||||
- name: create journal1 lv
|
- name: create journal1 lv
|
||||||
lvol:
|
lvol:
|
||||||
vg: journals
|
vg: journals
|
||||||
|
|
Loading…
Reference in New Issue