diff options
author | Justin chi <chigang@huawei.com> | 2015-10-28 07:59:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-10-28 07:59:27 +0000 |
commit | 5d0f138cdbbd5459984c41eaa05dfaa7c074167e (patch) | |
tree | 43104cb39f0999c36813b3324afc42abe623f406 /deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml | |
parent | 2e27389414987ec721f31ab75d415bb5a5ceaa99 (diff) | |
parent | dcd8ebd9d8da04c91650f596ae78f92115f8a97b (diff) |
Merge "cinder volume space is too small"
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml b/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml new file mode 100644 index 00000000..b44253c4 --- /dev/null +++ b/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml @@ -0,0 +1,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 |