pause the destroy_virt_inst playbook before actually destroying things :)
This commit is contained in:
parent
a794cafc13
commit
486ae2dd55
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@
|
|||
local_action: fail msg="host does not exist on $vmhost"
|
||||
when_string: ${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"
|
||||
|
||||
- name: destroy the vm
|
||||
action: virt name=${inventory_hostname} command=destroy
|
||||
delegate_to: $vmhost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue