builders: some ARMv7 bits need shell, not command

This commit is contained in:
Peter Robinson 2017-04-13 19:17:57 +00:00
parent 5bda47cc10
commit b18c9881b6

View file

@ -28,12 +28,12 @@
when: inventory_hostname not in result.list_vms
- 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"
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')
- name: ARMv7 copy the cmdline out
command: "virt-cat -a {{ volgroup }}/{{ inventory_hostname }} /boot/extlinux/extlinux.conf | grep -m1 append | sed -e 's/append //'"
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')