CI: fix race condition in kolla-ansible-host-vars role tests

A temporary file is removed by multiple test hosts, which all have
connection=local. This leads to a race between multiple executions of
the file module on localhost.

Add run_once.

Change-Id: I976122f72bdca7f91cbfcd81fca431b81a6b6aef
This commit is contained in:
Mark Goddard 2020-12-18 17:16:01 +00:00 committed by Pierre Riteau
parent e569036a05
commit 7a384b9ce4

View File

@ -140,6 +140,7 @@
file: file:
path: "{{ temp_path }}" path: "{{ temp_path }}"
state: absent state: absent
run_once: true
- name: Refresh the inventory - name: Refresh the inventory
meta: refresh_inventory meta: refresh_inventory