Remove dashes from short tar params
Using dashes with tar's short parameters creates a bunch of extra logging
output and warnings. This should greatly reduce logging output.
Change-Id: Icf9392c749e3f9731e5bc182a242a2bc11e440a9
(cherry picked from commit d6930f1b04
)
This commit is contained in:
parent
f64bc06b1e
commit
b89f1e5bc1
@ -43,7 +43,7 @@
|
|||||||
# - lxc-cache-unarchive
|
# - lxc-cache-unarchive
|
||||||
|
|
||||||
- name: Move lxc cached image into place
|
- name: Move lxc cached image into place
|
||||||
command: "tar -C {{ lxc_container_cache_path }}/ -xf /var/cache/lxc_{{ item.name }}"
|
command: "tar xf /var/cache/lxc_{{ item.name }} -C {{ lxc_container_cache_path }}/"
|
||||||
with_items: lxc_container_caches
|
with_items: lxc_container_caches
|
||||||
when: cache_download|changed
|
when: cache_download|changed
|
||||||
tags:
|
tags:
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
# TODO(cloudnull) This should use the find module when we move to Ansible 2.0
|
# TODO(cloudnull) This should use the find module when we move to Ansible 2.0
|
||||||
find "{{ repo_build_venv_build_dir }}/venvs/{{ item.key | replace('os_', '') }}" -name '*.pyc' -delete
|
find "{{ repo_build_venv_build_dir }}/venvs/{{ item.key | replace('os_', '') }}" -name '*.pyc' -delete
|
||||||
# Create archive
|
# Create archive
|
||||||
tar -czf "{{ item.key | replace('os_', '') }}-{{ repo_build_release_tag }}.tgz" \
|
tar czf "{{ item.key | replace('os_', '') }}-{{ repo_build_release_tag }}.tgz" \
|
||||||
-C "{{ repo_build_venv_build_dir }}/venvs/{{ item.key | replace('os_', '') }}" .
|
-C "{{ repo_build_venv_build_dir }}/venvs/{{ item.key | replace('os_', '') }}" .
|
||||||
args:
|
args:
|
||||||
chdir: "{{ repo_build_venv_dir }}/{{ repo_build_release_tag }}/{{ ansible_distribution | lower }}"
|
chdir: "{{ repo_build_venv_dir }}/{{ repo_build_release_tag }}/{{ ansible_distribution | lower }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user