Browse Source

Use join for the uncompress command.

Jonathan Steffan 9 years ago
parent
commit
a69aedf1f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml

+ 1 - 1
playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml

@@ -18,7 +18,7 @@
   register: downloaded_image
 
 - name: Uncompress Base Cloud image
-  command: 'unxz -kf {{ os_libvirt_storage_pool_path }}/{{ image_name }}.{{ image_compression }}'
+  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