aboutsummaryrefslogtreecommitdiff
path: root/vm-delete.yml
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2023-05-29 11:07:09 -0400
committerspmfox <spmfox@foxwd.com>2023-05-29 11:07:09 -0400
commit891bd795def59f9cdd359e317df4078a0f655033 (patch)
tree84f095a5db9ec8cbfb2b787f14aeae8447f9cec4 /vm-delete.yml
parentff35c64d337a286ac2864c8403c1840e28bb23b1 (diff)
Adding support for multi-vm environment definition
Diffstat (limited to 'vm-delete.yml')
-rw-r--r--vm-delete.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/vm-delete.yml b/vm-delete.yml
index fb720e4..6907c84 100644
--- a/vm-delete.yml
+++ b/vm-delete.yml
@@ -1,27 +1,40 @@
- hosts: all
become: true
+ gather_facts: false
tasks:
- ansible.builtin.include_role:
name: zfs
tasks_from: dataset-check-exists.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"
- ansible.builtin.include_role:
name: libvirt
tasks_from: vm-check-exists.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"
- ansible.builtin.include_role:
name: libvirt
tasks_from: vm-confirm-info.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"
- ansible.builtin.include_role:
name: zfs
tasks_from: dataset-confirm-info.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"
- ansible.builtin.include_role:
name: libvirt
tasks_from: vm-undefine.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"
- ansible.builtin.include_role:
name: zfs
tasks_from: dataset-destroy.yml
+ apply:
+ delegate_to: "{{ hypervisor_host }}"