summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2017-04-27 16:50:29 +0000
committerKevin Fenzi <kevin@scrye.com>2017-04-27 16:50:29 +0000
commitf4365f74942eab5e5abbeb3f81dde0557f68c74d (patch)
treea29c76c3e566acd145aabc4f742661bacaea4a54 /tasks
parenta1d8bc71ffb0fbafd094fe627804a1817557249d (diff)
downloadansible-f4365f74942eab5e5abbeb3f81dde0557f68c74d.tar.gz
ansible-f4365f74942eab5e5abbeb3f81dde0557f68c74d.tar.xz
ansible-f4365f74942eab5e5abbeb3f81dde0557f68c74d.zip
try and set things so we can force armv7 kernel updates
Diffstat (limited to 'tasks')
-rw-r--r--tasks/virt_instance_create.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml
index 45a021c3b..f6043fce3 100644
--- a/tasks/virt_instance_create.yml
+++ b/tasks/virt_instance_create.yml
@@ -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