From a93e04656b8dc9bfbce998d0ec2ca299f4120629 Mon Sep 17 00:00:00 2001 From: spmfox Date: Tue, 30 May 2023 23:28:52 -0400 Subject: adding a rescue, if the VM fails to be created then the dataset is destroyed --- vm-create.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vm-create.yml b/vm-create.yml index 115be1d..7c03b30 100644 --- a/vm-create.yml +++ b/vm-create.yml @@ -29,6 +29,9 @@ delegate_to: "{{ hypervisor_host }}" rescue: + - ansible.builtin.debug: + msg: VM install failed, removing dataset + - ansible.builtin.include_role: name: zfs tasks_from: dataset-confirm-info.yml -- cgit