From ba78078b28e60455fe6f0975e3a85578b6ec30d3 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 26 Jul 2018 18:43:21 +0800 Subject: 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 --- deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'deploy') 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: -- cgit 1.2.3-korg