From: Harry Huang Date: Wed, 1 Aug 2018 08:23:38 +0000 (+0800) Subject: Add condition check for modification of lxc image download X-Git-Tag: opnfv-7.0.0~27 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F60475%2F1;p=compass4nfv.git Add condition check for modification of lxc image download JIRA: COMPASS-607 Change-Id: Ida012ffef20fa55fdc5065d78f7d1f908f3e94ec Signed-off-by: Harry Huang --- 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: