summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2015-04-15 20:37:24 -0400
committerJason DeTiberus <detiber@gmail.com>2015-04-15 20:37:24 -0400
commit545949d42411a7a10e5728c75f73872c69a2dc93 (patch)
treee042d54dc8e169c396a1311580a09087bb2ed8ea /playbooks
parent82cddd2515d2a355425bb1cd898209d766c62b77 (diff)
parent83ed87d41536f7006b3858a65a587263e3fd2b14 (diff)
downloadopenshift-545949d42411a7a10e5728c75f73872c69a2dc93.tar.gz
openshift-545949d42411a7a10e5728c75f73872c69a2dc93.tar.bz2
openshift-545949d42411a7a10e5728c75f73872c69a2dc93.tar.xz
openshift-545949d42411a7a10e5728c75f73872c69a2dc93.zip
Merge pull request #19 from lhuard1A/move_pool-refresh
Move `virsh pool-refresh`
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml4
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml3
2 files changed, 3 insertions, 4 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml b/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
index 10715f2b5..8a67d713f 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/configure_libvirt_storage_pool.yml
@@ -21,7 +21,3 @@
- name: Create the libvirt storage pool for openshift
command: 'virsh -c {{ libvirt_uri }} pool-create-as {{ libvirt_storage_pool }} dir --target {{ libvirt_storage_pool_path }}'
when: pool_info_result.rc == 1
-
-- name: Refresh the libvirt storage pool for openshift
- command: 'virsh -c {{ libvirt_uri }} pool-refresh {{ libvirt_storage_pool }}'
- when: pool_info_result.rc == 1
diff --git a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
index 96d440096..359d0b2f3 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
@@ -36,6 +36,9 @@
creates: '{{ os_libvirt_storage_pool_path }}/{{ item }}_cloud-init.iso'
with_items: instances
+- name: Refresh the libvirt storage pool for openshift
+ command: 'virsh -c {{ libvirt_uri }} pool-refresh {{ libvirt_storage_pool }}'
+
- name: Create VMs drives
command: 'virsh -c {{ libvirt_uri }} vol-create-as {{ os_libvirt_storage_pool }} {{ item }}.qcow2 10G --format qcow2 --backing-vol {{ image_name }} --backing-vol-format qcow2'
with_items: instances