summaryrefslogtreecommitdiff
path: root/spreadspace/vm-install.yml
blob: b6a69b675e1114dbb0bc8caa1928da1dfad2e513 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: cook variables for guest
  hosts: "{{ install_hostname }}"
  gather_facts: no
  tasks:
  - set_fact:
      install_cooked: "{{ install }}"
      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