Cleanup old facts before starting installer

This commit is contained in:
Timo Makinen 2021-02-23 17:35:28 +00:00
parent b2de68ebac
commit 5199c89a04

View file

@ -44,6 +44,13 @@
register: result
check_mode: false
- name: clean up old facts cache
file:
path: "{{ ansible_dir_root }}/facts/{{ inventory_hostname }}"
state: absent
delegate_to: localhost
when: inventory_hostname not in result.list_vms
- name: create temp directory
tempfile:
state: directory