From 78223d74be05957f1472f193671ccfd7e5b86220 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 4 Dec 2019 22:33:51 +0000 Subject: [PATCH] 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 --- tasks/virt_instance_create.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index 2446325d3c..78bbb89bb0 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -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