builders: some ARMv7 bits need delegate_to
This commit is contained in:
parent
058f6a84ec
commit
a046a6f8e0
1 changed files with 3 additions and 0 deletions
|
@ -29,15 +29,18 @@
|
||||||
|
|
||||||
- name: ARMv7 copy the kernel out
|
- name: ARMv7 copy the kernel out
|
||||||
command: virt-builder --get-kernel {{ volgroup }}/{{ inventory_hostname }} --output /var/lib/libvirt/images/ | awk -F/ '{print $NF}' > /var/lib/libvirt/images/{{ inventory_hostname }}-details.txt
|
command: 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}}"
|
||||||
when: inventory_hostname.startswith('buildvm-armv7')
|
when: inventory_hostname.startswith('buildvm-armv7')
|
||||||
|
|
||||||
- name: ARMv7 copy the cmdline out
|
- name: ARMv7 copy the cmdline out
|
||||||
command: virt-cat -a {{ volgroup }}/{{ inventory_hostname }} /boot/extlinux/extlinux.conf | grep -m1 append | sed -e 's/append //'
|
command: virt-cat -a {{ volgroup }}/{{ inventory_hostname }} /boot/extlinux/extlinux.conf | grep -m1 append | sed -e 's/append //'
|
||||||
|
delegate_to: "{{ vmhost}}"
|
||||||
register: host_cmdline
|
register: host_cmdline
|
||||||
when: inventory_hostname.startswith('buildvm-armv7')
|
when: inventory_hostname.startswith('buildvm-armv7')
|
||||||
|
|
||||||
- name: ARMv7 update the virt parameters
|
- name: ARMv7 update the virt parameters
|
||||||
virt_boot: kernel="/var/lib/libvirt/images/vmlinuz-4.10.8-200.fc25.armv7hl+lpae" initrd="/var/lib/libvirt/images/initramfs-4.10.8-200.fc25.armv7hl+lpae.img" cmdline={{ host_cmdline }}
|
virt_boot: kernel="/var/lib/libvirt/images/vmlinuz-4.10.8-200.fc25.armv7hl+lpae" initrd="/var/lib/libvirt/images/initramfs-4.10.8-200.fc25.armv7hl+lpae.img" cmdline={{ host_cmdline }}
|
||||||
|
delegate_to: "{{ vmhost}}"
|
||||||
when: inventory_hostname.startswith('buildvm-armv7')
|
when: inventory_hostname.startswith('buildvm-armv7')
|
||||||
|
|
||||||
- name: start the vm up
|
- name: start the vm up
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue