summaryrefslogtreecommitdiff
path: root/vm-install.yml
blob: c79adc2fb7f1df0be796ac7a05e648322e4a41f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Basic Installation
  hosts: "{{ vmname }}"
  gather_facts: no
  pre_tasks:
  - name: Gather facts of vm host
    setup:
    delegate_to: "{{ vm_install.host }}"
    delegate_facts: yes
  roles:
  - role: vm/install

- import_playbook: "host_playbooks/{{ vmname }}.yml"

- name: Reboot and wait for VM come back
  hosts: "{{ vmname }}"
  gather_facts: no
  roles:
  - role: reboot-and-wait
    reboot_delay: 10
    reboot_timeout: 120