convert over the when_string to a when and change the variable syntax

lemme tell you how much I am looking forward to doing this all over
This commit is contained in:
Seth Vidal 2013-06-11 16:08:16 +00:00
parent 7a6423ccdf
commit d58aa21f37

View file

@ -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: {{ 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"