Преглед на файлове

Use join for the uncompress command.

Jonathan Steffan преди 9 години
родител
ревизия
a69aedf1f2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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