From 486ae2dd55eae93c11d096e07c8ce201cf5e895f Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 6 May 2013 17:01:33 +0000 Subject: [PATCH] pause the destroy_virt_inst playbook before actually destroying things :) --- playbooks/destroy_virt_inst.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/destroy_virt_inst.yml b/playbooks/destroy_virt_inst.yml index 2f684e7d7f..b9e9134882 100644 --- a/playbooks/destroy_virt_inst.yml +++ b/playbooks/destroy_virt_inst.yml @@ -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