Merge "tasks: lxc_cache_create: Use threads when compressing base image"

This commit is contained in:
Zuul 2017-11-08 13:50:37 +00:00 committed by Gerrit Code Review
commit 85cdc3f80e

View File

@ -30,7 +30,7 @@
# suppress this warning with 'warn: no'.
- name: Create lxc image
shell: |
tar -Opc -C {{ lxc_image_cache_path }} . | {{ lxc_xz_bin }} -{{ lxc_image_compression_ratio }} -c - > rootfs.tar.xz
tar -Opc -C {{ lxc_image_cache_path }} . | {{ lxc_xz_bin }} -T 0 -{{ lxc_image_compression_ratio }} -c - > rootfs.tar.xz
args:
chdir: "{{ cache_path_fact }}/"
warn: no