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:
parent
7a6423ccdf
commit
d58aa21f37
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue