summaryrefslogtreecommitdiffstats
path: root/playbooks/libvirt/openshift-cluster/tasks
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-12-10 17:04:16 -0500
committerThomas Wiest <twiest@users.noreply.github.com>2015-12-10 17:04:16 -0500
commita2a96007033cc0b874ea95b8d53d576ac31cc3d6 (patch)
tree29b050cd6c539460af8325356fda30a4db9cc596 /playbooks/libvirt/openshift-cluster/tasks
parentfa1defdeed0431960643780af1f78fd5feba5ddc (diff)
parenta69aedf1f23b3e1927ce81378ec5e07d8aa6c9fc (diff)
downloadopenshift-a2a96007033cc0b874ea95b8d53d576ac31cc3d6.tar.gz
openshift-a2a96007033cc0b874ea95b8d53d576ac31cc3d6.tar.bz2
openshift-a2a96007033cc0b874ea95b8d53d576ac31cc3d6.tar.xz
openshift-a2a96007033cc0b874ea95b8d53d576ac31cc3d6.zip
Merge pull request #954 from damaestro/update_latest_cloud_image
Update for latest CentOS-7-x86_64-GenericCloud.
Diffstat (limited to 'playbooks/libvirt/openshift-cluster/tasks')
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
index 4825207c9..f26b41f31 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
@@ -13,8 +13,15 @@
get_url:
url: '{{ image_url }}'
sha256sum: '{{ image_sha256 }}'
- dest: '{{ os_libvirt_storage_pool_path }}/{{ image_name }}'
+ dest: '{{ os_libvirt_storage_pool_path }}/{{ [image_name, image_compression] | join(".") }}'
when: '{{ ( lookup("oo_option", "skip_image_download") | default("no", True) | lower ) in ["false", "no"] }}'
+ register: downloaded_image
+
+- name: Uncompress Base Cloud image
+ command: 'unxz -kf {{ os_libvirt_storage_pool_path }}/{{ [image_name, image_compression] | join(".") }}'
+ args:
+ creates: '{{ os_libvirt_storage_pool_path }}/{{ image_name }}'
+ when: image_compression in ["xz"] and downloaded_image.changed
- name: Create the cloud-init config drive path
file: