try and set things so we can force armv7 kernel updates
This commit is contained in:
parent
a1d8bc71ff
commit
f4365f7494
1 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
|||
- 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}}"
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is true )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
command: "head -n1 /var/lib/libvirt/images/{{ inventory_hostname }}-details.txt"
|
||||
delegate_to: "{{ vmhost}}"
|
||||
register: host_armv7kernel
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is true )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
command: "tail -n1 /var/lib/libvirt/images/{{ inventory_hostname }}-details.txt"
|
||||
delegate_to: "{{ vmhost}}"
|
||||
register: host_armv7initrd
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is true )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
|
@ -54,14 +54,14 @@
|
|||
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') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is true )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
- 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 }}"
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate is true )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
|
||||
- name: ARMv7 pause while VM updates
|
||||
pause: seconds=5
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and inventory_hostname not in result.list_vms
|
||||
when: inventory_hostname.startswith('buildvm-armv7') and ( inventory_hostname not in result.list_vms or armv7kernelupdate not defined )
|
||||
tags:
|
||||
- armv7-kernel
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue