Skip to content

Commit

Permalink
tests: lvm_setup.yml, add carriage return
Browse files Browse the repository at this point in the history
This commit adds crlf between each task.
It makes the playbook more readable.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8ef9fb6)
  • Loading branch information
guits authored and dsavineau committed Jul 22, 2020
1 parent a4efb52 commit 0b5a264
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/functional/lvm_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
path: /run/ostree-booted
register: stat_ostree
tags: always

- name: set_fact is_atomic
set_fact:
is_atomic: '{{ stat_ostree.stat.exists }}'
tags: always

# Some images may not have lvm2 installed
- name: install lvm2
package:
Expand All @@ -26,22 +28,26 @@
register: result
until: result is succeeded
when: not is_atomic | bool

- name: create volume group
lvg:
vg: test_group
pvs: "{{ pv_devices[0] | default('/dev/sdb') }}"

- name: create logical volume 1
lvol:
vg: test_group
lv: data-lv1
size: 50%FREE
shrink: false

- name: create logical volume 2
lvol:
vg: test_group
lv: data-lv2
size: 100%FREE
shrink: false

- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
parted:
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
Expand All @@ -52,6 +58,7 @@
label: gpt
state: present
tags: partitions

- name: partition "{{ pv_devices[1] | default('/dev/sdc') }}"for journals
parted:
device: "{{ pv_devices[1] | default('/dev/sdc') }}"
Expand All @@ -62,10 +69,12 @@
state: present
label: gpt
tags: partitions

- name: create journals vg from "{{ pv_devices[1] | default('/dev/sdc') }}2"
lvg:
vg: journals
pvs: "{{ pv_devices[1] | default('/dev/sdc') }}2"

- name: create journal1 lv
lvol:
vg: journals
Expand Down

0 comments on commit 0b5a264

Please sign in to comment.