diff options
author | tzumainn <tzumainn@redhat.com> | 2017-09-13 15:22:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 15:22:32 -0400 |
commit | 0f7b04e1b445c255113175a4c11e547664a6306f (patch) | |
tree | b1b301c29f2e26acb63f57e5dda905aeedf8910a | |
parent | 443b8284c31afec35e36e9df347285d1087e945a (diff) | |
parent | 8a204aaec709135ebfa716459f2ba3bcf1db4f04 (diff) | |
download | openshift-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
-rw-r--r-- | roles/static_inventory/tasks/main.yml | 8 |
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 |