Cleanup old facts before starting installer
This commit is contained in:
parent
b2de68ebac
commit
5199c89a04
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue