virt_instance_create: ansible_python_interperter should be a var

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

View file

@ -65,9 +65,10 @@
- armv7-kernel
- name: ARMv7 update the virt parameters
vars:
ansible_python_interpreter: /usr/bin/python2
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