summaryrefslogtreecommitdiff
path: root/dan/vm-install.yml
blob: 4d42946f4ebfe7e20b26a1c4ae15a6506463151b (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 }}"
  gather_facts: no
  tasks:
  - set_fact:
      vm_host_cooked: "{{ vm_host }}"

- import_playbook: ../common/vm-install.yml