diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-08-18 05:29:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-18 05:29:52 +0000 |
commit | 850339f2760b19773becff054733a23f99523269 (patch) | |
tree | f3c193754096b3454c74e20ef37ef67a2d63c770 /deploy/adapters/ansible/roles | |
parent | cc71c866cb9880ac014bcf9a3ba52d579d8e5df2 (diff) | |
parent | 3a9892f6ed7b3d8a1359cae9745dd3f5891c77a9 (diff) |
Merge "Download OpenStack git repo from local server for CI"
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 25 |
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 ff7172b5..be7fbbcb 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" |