mirror of https://github.com/ceph/ceph-ansible.git
19 lines
392 B
YAML
19 lines
392 B
YAML
---
|
|
|
|
- hosts: osds
|
|
gather_facts: false
|
|
become: yes
|
|
tasks:
|
|
|
|
- name: create physical volume
|
|
command: pvcreate /dev/sdb
|
|
failed_when: false
|
|
|
|
- name: create volume group
|
|
command: vgcreate test_group /dev/sdb
|
|
failed_when: false
|
|
|
|
- name: create logical volume
|
|
command: lvcreate --yes -l 100%FREE -n test_volume test_group
|
|
failed_when: false
|