diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-08-30 17:11:09 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-08-30 17:13:08 +0800 |
commit | e42f2edf8f4bd81416f815dfb8899cc7f89af4f4 (patch) | |
tree | 3465f453beffd7b53f7089ecf5cae48384c133e6 /deploy/adapters/ansible/roles/config-osa/tasks | |
parent | c51e937d7a121f8a267f0522fb787adbfb1a7eb9 (diff) |
Modify download url for lxc image
JIRA: COMPASS-607
Download lxc image from a local server in huawei
lab to avoid lxc pre-staged failur
Change-Id: Ia941d9e883ab5a4ff9c839e65e53703c6c237461
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/tasks')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 18 |
1 files changed, 18 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 7e2585c2..35768a2c 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -378,3 +378,21 @@ copy: src: redhat-7.yml dest: /etc/ansible/roles/os_tacker/vars/redhat-7.yml + +- name: copy lxc_cache_prestage.patch + copy: + src: lxc_cache_prestage.patch + dest: /etc/ansible/roles/lxc_hosts/tasks/lxc_cache_prestage.patch + when: + - checkresult.rc == 0 + - offline_deployment is defined and offline_deployment == "Disable" + +- name: patch lxc_cache_prestage.yml + shell: + patch -p0 < lxc_cache_prestage.patch + args: + chdir: /etc/ansible/roles/lxc_hosts/tasks/ + when: + - checkresult.rc == 0 + - offline_deployment is defined and offline_deployment == "Disable" + ignore_errors: "true" |