From b89f1e5bc19b5161beef93670c0dd66ae474fdfd Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 3 Nov 2015 14:34:57 -0600 Subject: [PATCH] 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 d6930f1b04ce664af009263c6b9e80fc01102908) --- playbooks/roles/lxc_hosts/tasks/lxc_cache.yml | 2 +- playbooks/roles/repo_build/tasks/repo_venv_build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/lxc_hosts/tasks/lxc_cache.yml b/playbooks/roles/lxc_hosts/tasks/lxc_cache.yml index 6d135c8049..dbc69b49c6 100644 --- a/playbooks/roles/lxc_hosts/tasks/lxc_cache.yml +++ b/playbooks/roles/lxc_hosts/tasks/lxc_cache.yml @@ -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: diff --git a/playbooks/roles/repo_build/tasks/repo_venv_build.yml b/playbooks/roles/repo_build/tasks/repo_venv_build.yml index 338bc25a6f..a97fc01c7d 100644 --- a/playbooks/roles/repo_build/tasks/repo_venv_build.yml +++ b/playbooks/roles/repo_build/tasks/repo_venv_build.yml @@ -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 }}"