builder vm: add tag for armv7 kernel
This commit is contained in:
parent
39319e2063
commit
16fe1f9c84
1 changed files with 6 additions and 0 deletions
|
@ -31,17 +31,23 @@
|
|||
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}}"
|
||||
when: inventory_hostname.startswith('buildvm-armv7')
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- name: ARMv7 copy the cmdline out
|
||||
shell: "virt-cat -a {{ volgroup }}/{{ inventory_hostname }} /boot/extlinux/extlinux.conf | grep -m1 append | sed -e 's/append //'"
|
||||
delegate_to: "{{ vmhost}}"
|
||||
register: host_cmdline
|
||||
when: inventory_hostname.startswith('buildvm-armv7')
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- name: ARMv7 update the virt parameters
|
||||
virt_boot: domain={{ inventory_hostname }} 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.stdout }}
|
||||
delegate_to: "{{ vmhost }}"
|
||||
when: inventory_hostname.startswith('buildvm-armv7')
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- name: start the vm up
|
||||
virt: state=started name={{ inventory_hostname }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue