Force ansible cache refresh 09/60209/1
authorHarry Huang <huangxiangyu5@huawei.com>
Thu, 26 Jul 2018 10:43:21 +0000 (18:43 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Thu, 26 Jul 2018 10:43:21 +0000 (18:43 +0800)
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>
deploy/adapters/ansible/roles/config-osa/tasks/main.yml

index 3fd04dc..914b945 100755 (executable)
     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: