virt_instance_create: try and remove facts cache for new vms again now that we hopefully have the python autodetect working more or less

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-12-04 22:33:51 +00:00 committed by Pierre-Yves Chibon
parent b87ca6a85c
commit 78223d74be

View file

@ -11,10 +11,10 @@
register: result
check_mode: no
#- name: ensure no old facts exist
# delegate_to: localhost
# file: path=/root/.ansible_facts_cache/{{ inventory_hostname }} state=absent
# when: inventory_hostname not in result.list_vms
- name: ensure no old facts exist
delegate_to: localhost
file: path=/root/.ansible_facts_cache/{{ inventory_hostname }} state=absent
when: inventory_hostname not in result.list_vms
- name: ensure the lv for the guest is made
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present