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