virt_instance_create: make sure to wipe the facts cache if we are (re)installing the guest
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a23c67ecb6
commit
9d1e6bf031
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,13 @@
|
|||
delay: 20
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: nuke the facts cache for this hosts/host
|
||||
file:
|
||||
path: /root/.ansible_facts_cache/{{ inventory_hostname }}
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: ARMv7 copy the kernel out
|
||||
shell: "virt-builder --get-kernel {{ volgroup }}/{{ inventory_hostname }} --output /var/lib/libvirt/images/ | awk -F/ '{print $NF}' > /var/lib/libvirt/images/{{ inventory_hostname }}-details.txt"
|
||||
delegate_to: "{{ vmhost}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue