diff options
author | 2018-08-01 16:23:38 +0800 | |
---|---|---|
committer | 2018-08-01 16:23:38 +0800 | |
commit | 6db274398147b194e178650139e44dba0b08ec34 (patch) | |
tree | 2c823b309fcbe97f7bec73e740603a4ff78f794a /deploy/adapters/ansible/roles/config-osa/tasks | |
parent | 518bd9271f25c852cd8c71147e4f20ad116b4ef4 (diff) |
Add condition check for modification of lxc image download
JIRA: COMPASS-607
Change-Id: Ida012ffef20fa55fdc5065d78f7d1f908f3e94ec
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 | 6 |
1 files changed, 6 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 914b945f..ff7172b5 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -373,12 +373,18 @@ 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" - name: add cache refresh blockinfile: |