blob: 7fbba705382cfc2a2edd345149a7dbb3bf6bcee6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
### TODO: this doesn't seem to work... but we need some infos from
### the VM Host...
# - name: Gather facts of vm host
# hosts: "{{ hostvars[vmname].vm_install.host }}"
- name: Basic Installation
hosts: "{{ vmname }}"
gather_facts: no
roles:
- role: vm-install
- import_playbook: "playbooks/{{ vmname }}.yaml"
- name: Reboot and wait for VM come back
hosts: "{{ vmname }}"
gather_facts: no
roles:
- role: reboot-and-wait
reboot_delay: 10
reboot_timeout: 120
|