summaryrefslogtreecommitdiffstats
path: root/tasks/virt_instance_create.yml
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@fedoraproject.org>2017-04-13 18:36:47 +0000
committerPeter Robinson <pbrobinson@fedoraproject.org>2017-04-13 18:36:54 +0000
commita046a6f8e0f9bbdfe46f64ef9474678295e3bee2 (patch)
treeefe17bc272392e828a7012cfe1ff064451c6b3ac /tasks/virt_instance_create.yml
parent058f6a84ecdeef6f7f86c44491eb247cc7582632 (diff)
builders: some ARMv7 bits need delegate_to
Diffstat (limited to 'tasks/virt_instance_create.yml')
-rw-r--r--tasks/virt_instance_create.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml
index 2afdabefd..9da92a133 100644
--- a/tasks/virt_instance_create.yml
+++ b/tasks/virt_instance_create.yml
@@ -29,15 +29,18 @@
- 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
+ delegate_to: "{{ vmhost}}"
when: inventory_hostname.startswith('buildvm-armv7')
- name: ARMv7 copy the cmdline out
command: 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')
- 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 }}
+ delegate_to: "{{ vmhost}}"
when: inventory_hostname.startswith('buildvm-armv7')
- name: start the vm up