From 891bd795def59f9cdd359e317df4078a0f655033 Mon Sep 17 00:00:00 2001 From: spmfox Date: Mon, 29 May 2023 11:07:09 -0400 Subject: Adding support for multi-vm environment definition --- vm-delete.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'vm-delete.yml') 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 }}" -- cgit