aboutsummaryrefslogtreecommitdiff
path: root/vm-create.yml
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2023-05-30 23:28:52 -0400
committerspmfox <spmfox@foxwd.com>2023-05-30 23:28:52 -0400
commita93e04656b8dc9bfbce998d0ec2ca299f4120629 (patch)
treeebc68301ff0cfa28bf8767a4af0df22cde9dc298 /vm-create.yml
parentbdb2c566833ab8a98565fa5eb117995ae9b32592 (diff)
adding a rescue, if the VM fails to be created then the dataset is destroyed
Diffstat (limited to 'vm-create.yml')
-rw-r--r--vm-create.yml3
1 files changed, 3 insertions, 0 deletions
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