summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@fedoraproject.org>2017-04-14 10:18:28 +0000
committerPeter Robinson <pbrobinson@fedoraproject.org>2017-04-14 10:18:28 +0000
commit16fe1f9c84c0ac7830aee8807fc688a093eb3163 (patch)
treef4fd29f728e6a61978cba139365f1c3a49e42d88
parent39319e2063ad238bb98c70c63c149cdc614deafa (diff)
downloadansible-16fe1f9c84c0ac7830aee8807fc688a093eb3163.tar.gz
ansible-16fe1f9c84c0ac7830aee8807fc688a093eb3163.tar.xz
ansible-16fe1f9c84c0ac7830aee8807fc688a093eb3163.zip
builder vm: add tag for armv7 kernel
-rw-r--r--tasks/virt_instance_create.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml
index d0f4c1fc7..7120ae678 100644
--- a/tasks/virt_instance_create.yml
+++ b/tasks/virt_instance_create.yml
@@ -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 }}