summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-07-26 18:43:21 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-07-26 18:43:21 +0800
commitba78078b28e60455fe6f0975e3a85578b6ec30d3 (patch)
tree731343f5fe5d6c896da8161a852e9cada5eecb85 /deploy
parentb71da8d8ace9e4b84b11750c5eef9fd10a479dae (diff)
Force ansible cache refresh
JIRA: COMPASS-609 Force ansible cache refreshed in setup infrastructure to avoid ceph install failure. Change-Id: If54eacb5480e829e4920097ef6ea7939443f124d Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml11
1 files changed, 11 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 3fd04dcb..914b945f 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -379,3 +379,14 @@
patch -p0 < lxc_cache_prestage.patch
args:
chdir: /etc/ansible/roles/lxc_hosts/tasks/
+
+- name: add cache refresh
+ blockinfile:
+ dest: /opt/openstack-ansible/playbooks/setup-infrastructure.yml
+ insertbefore: '^- include: unbound-install.yml'
+ block: |
+ - hosts: all
+ user: root
+ tasks:
+ - name: refresh
+ setup: