aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-08-17 15:00:42 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-08-17 15:00:42 +0800
commit3a9892f6ed7b3d8a1359cae9745dd3f5891c77a9 (patch)
tree208b911c148da8da4157ee65e649b1530b55f5bb /deploy/adapters/ansible/roles
parent381a1df096e1f358bef8de1dbaa7593379357f22 (diff)
Download OpenStack git repo from local server for CI
JIRA: COMPASS-614 Online git clone is heavily affected by the network condition of huawei lab. Download OpenStack git repo from local server to regain stability Change-Id: I92886b9c65068294f303d27de1b3b0261442af34 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
index ff7172b..be7fbbc 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -396,3 +396,28 @@
tasks:
- name: refresh
setup:
+
+- name: create openstack git directory
+ file:
+ path: /opt/git/openstack
+ state: directory
+ when:
+ - checkresult.rc == 0
+ - offline_deployment is defined and offline_deployment == "Disable"
+
+- name: download openstack git package
+ get_url:
+ url: "http://192.168.137.222/download/openstack-queens-git.tar.gz"
+ dest: "/opt/git/openstack"
+ when:
+ - checkresult.rc == 0
+ - offline_deployment is defined and offline_deployment == "Disable"
+
+- name: extract openstack git repo
+ shell:
+ tar zxf openstack-queens-git.tar.gz
+ args:
+ chdir: "/opt/git/openstack"
+ when:
+ - checkresult.rc == 0
+ - offline_deployment is defined and offline_deployment == "Disable"