aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml
blob: b44253c40179427155d83f4763f336242fe10783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- include_vars: "{{ ansible_os_family }}.yml"

- name: get available /var partition size
  script: get_var_size.sh
  register: part_size

- name: create cinder file if not exitst
  script: create_img.sh {{ part_size.stdout }}

- name: do a losetup on /mnt/cinder-volumes
  script: losetup.sh
  register: loop_device

- name: debug loop device
  debug: msg={{ loop_device.stdout }}

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