summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authortzumainn <tzumainn@redhat.com>2017-09-13 15:22:32 -0400
committerGitHub <noreply@github.com>2017-09-13 15:22:32 -0400
commit0f7b04e1b445c255113175a4c11e547664a6306f (patch)
treeb1b301c29f2e26acb63f57e5dda905aeedf8910a /roles
parent443b8284c31afec35e36e9df347285d1087e945a (diff)
parent8a204aaec709135ebfa716459f2ba3bcf1db4f04 (diff)
downloadopenshift-0f7b04e1b445c255113175a4c11e547664a6306f.tar.gz
openshift-0f7b04e1b445c255113175a4c11e547664a6306f.tar.bz2
openshift-0f7b04e1b445c255113175a4c11e547664a6306f.tar.xz
openshift-0f7b04e1b445c255113175a4c11e547664a6306f.zip
Merge pull request #730 from tomassedovic/always-refresh-hosts
Clear the previous inventory during provisioning
Diffstat (limited to 'roles')
-rw-r--r--roles/static_inventory/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/static_inventory/tasks/main.yml b/roles/static_inventory/tasks/main.yml
index 24e11beb6..3dab62df2 100644
--- a/roles/static_inventory/tasks/main.yml
+++ b/roles/static_inventory/tasks/main.yml
@@ -1,4 +1,12 @@
---
+- name: Remove any existing inventory
+ file:
+ path: "{{ inventory_path }}/hosts"
+ state: absent
+
+- name: Refresh the inventory
+ meta: refresh_inventory
+
- name: Generate in-memory inventory
include: openstack.yml