From 45d1576d4881526aa5bee87d7537e9950451c4ce Mon Sep 17 00:00:00 2001 From: ramishra Date: Thu, 11 Feb 2021 08:43:01 +0530 Subject: [PATCH] Don't use swift for config download We used to store an archive in swift and then extract it locally. With swift gone we would not be able to do it. Closes-Bug: #1915356 Change-Id: Iaaffd76ed273c89d927e1ac3c012bfbe0df1b450 --- .../playbooks/cli-config-download-export.yaml | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/tripleo_ansible/playbooks/cli-config-download-export.yaml b/tripleo_ansible/playbooks/cli-config-download-export.yaml index a95fc8daf..87111155d 100644 --- a/tripleo_ansible/playbooks/cli-config-download-export.yaml +++ b/tripleo_ansible/playbooks/cli-config-download-export.yaml @@ -31,10 +31,6 @@ config_dir: "{{ lookup('env', 'HOME') ~ '/tripleo-config' }}" when: config_dir is not defined - - name: Set config_container - set_fact: - config_container: "{{ plan ~ '-config' }}" - - name: set work_dir set_fact: work_dir: "{{ config_dir ~ '/' ~ plan }}" @@ -57,17 +53,5 @@ plan: "{{ plan }}" config_container: "{{ config_container }}" config_type: "{{ config_type }}" - download: false - - - name: Get temp url for archive - tripleo_swift_tempurl: - container: "{{ config_container }}" - object: "{{ config_container ~ '.tar.gz' }}" - method: GET - register: config_download_url - - - name: Extract config download - unarchive: - src: "{{ config_download_url.tempurl }}" - dest: "{{ work_dir }}" - remote_src: true + work_dir: "{{ work_dir }}" + download: true