Merge "Remove dashes from short tar params" into liberty

This commit is contained in:
Jenkins 2015-11-05 11:11:11 +00:00 committed by Gerrit Code Review
commit a267b4e538
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
# - lxc-cache-unarchive
- 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
when: cache_download|changed
tags:

View File

@ -66,7 +66,7 @@
# 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
# 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_', '') }}" .
args:
chdir: "{{ repo_build_venv_dir }}/{{ repo_build_release_tag }}/{{ ansible_distribution | lower }}"