mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 05:51:56 +08:00
pause the destroy_virt_inst playbook before actually destroying things :)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user