--- ### 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