virt_instance_create: Try and use python2 for the virt_boot call since it's python2.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-10-07 18:48:53 +00:00 committed by Pierre-Yves Chibon
parent 35258909e0
commit 74c4fc2188

View file

@ -67,6 +67,7 @@
- name: ARMv7 update the virt parameters
virt_boot: domain={{ inventory_hostname }} kernel=/var/lib/libvirt/images/{{ host_armv7kernel.stdout }} initrd=/var/lib/libvirt/images/{{ host_armv7initrd.stdout }} cmdline={{ host_cmdline.stdout }}
delegate_to: "{{ vmhost }}"
ansible_python_interpreter: /usr/bin/python2
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is defined )
tags:
- armv7-kernel