From 7a6423ccdf4187a4dfa21ea0744ba3994acd4d76 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 11 Jun 2013 15:01:14 +0000 Subject: [PATCH] using new when syntax. gotta test --- playbooks/destroy_virt_inst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/destroy_virt_inst.yml b/playbooks/destroy_virt_inst.yml index b9e9134882..62bb2591fd 100644 --- a/playbooks/destroy_virt_inst.yml +++ b/playbooks/destroy_virt_inst.yml @@ -22,7 +22,7 @@ - name: fail if the hose is not already defined/existent local_action: fail msg="host does not exist on $vmhost" - when_string: ${inventory_hostname} not in ${result.list_vms} + when: {{ inventory_hostname }} not in {{ result.list_vms }} - name: pause for 30s before doing it pause: seconds=30 prompt="Destroying vm now $target, abort if this is wrong"