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 }}"
29 shell: sleep 2 && poweroff
31 - name: Update VM definition
34 - name: Wait for VM to shut down
36 name: "{{ hostname }}"
43 - name: Apply the base vm/guest role
44 hosts: "{{ hostname }}"
46 - name: Wait for the VM to be up and running