From 8828d4e11c28da88d65e45014431361aabb0c3d5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Nov 2020 03:42:54 +0100 Subject: use delegation for vm/guest install and define --- spreadspace/vm-install.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'spreadspace/vm-install.yml') diff --git a/spreadspace/vm-install.yml b/spreadspace/vm-install.yml index b6a69b67..7d8e7320 100644 --- a/spreadspace/vm-install.yml +++ b/spreadspace/vm-install.yml @@ -1,5 +1,5 @@ --- -- name: cook variables for guest +- name: cook variables for host hosts: "{{ install_hostname }}" gather_facts: no tasks: @@ -8,11 +8,4 @@ network_cooked: "{{ network }}" vm_host_cooked: "{{ vm_host }}" -- name: cook variables for host - hosts: "{{ hostvars[install_hostname].vm_host.name }}" - gather_facts: no - tasks: - - set_fact: - vm_host_cooked: "{{ vm_host }}" - - import_playbook: ../common/vm-install.yml -- cgit v1.2.3