2 - name: preperations and sanity checks
3 hosts: "{{ hostname }}"
6 - name: setup variables
8 network_cooked: "{{ network }}"
9 install_cooked: "{{ install }}"
11 - name: create temporary host group for vm host
14 name: "{{ install_cooked.host }}"
15 inventory_dir: "{{inventory_dir}}"
17 # TODO: add some sanity checks
19 - name: Update network configuration & shutdown VM
20 hosts: "{{ hostname }}"
30 shell: sleep 2 && poweroff
32 - name: Update VM definition
35 - name: Wait for VM to shut down
37 name: "{{ hostname }}"
44 - name: Apply the base vm/guest role
45 hosts: "{{ hostname }}"
47 - name: Wait for the VM to be up and running