aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-volume/tasks/real.yml
blob: 19ef828b4f66b36a0c8606ee178f3dc68606fa15 (plain)
1
2
3
4
5
6
7
8
9
10
---
- include_vars: "{{ ansible_os_family }}.yml"

- name: destroy GPT lable
  shell: dd if=/dev/urandom of={{ physical_device }} bs=4M count=1
  ignore_errors: True

- name: create physical and group volumes
  lvg: vg=cinder-volumes pvs={{ physical_device }}
       vg_options=--force