From f1d4e575f08cb9a11f7002ec4c7a009be4b9d082 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 25 Nov 2013 18:37:51 +0000 Subject: [PATCH] And of course it needs to be quoted. --- tasks/virt_instance_create.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index 901fdf7513..0a9b14324e 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -3,31 +3,31 @@ # do an action here that aborts if a bunch of vars are not set - name: get vm list on the vmhost - delegate_to: {{ vmhost }} + delegate_to: "{{ vmhost }}" virt: command=list_vms register: result - name: ensure the lv for the host is made lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present - delegate_to: {{ vmhost }} + delegate_to: "{{ vmhost }}" when: inventory_hostname not in result.list_vms - name: run the virt-install shell: "{{ virt_install_command }}" - delegate_to: {{ vmhost }} + delegate_to: "{{ vmhost }}" when: inventory_hostname not in result.list_vms - name: wait for the install to finish - by watching the domstate # this just keeps checking the domstate until it stops running shell: while `/usr/bin/virsh domstate {{ inventory_hostname }} | grep -q running` ; do sleep 10; done - delegate_to: {{ vmhost }} + delegate_to: "{{ vmhost }}" async: 1200 poll: 10 when: inventory_hostname not in result.list_vms - name: start the vm up action: virt state=running name={{ inventory_hostname }} - delegate_to: {{ vmhost }} + delegate_to: "{{ vmhost }}" when: inventory_hostname not in result.list_vms - name: wait for ssh on the vm to start back