add other vlans to network config
[noc.git] / ansible / vm-install.yml
index 198b26f..507906f 100644 (file)
       group: _vmhost_
   # TODO: add some sanity checks
 
+- import_playbook: remove_known_hosts.yml
+
 - name: basic installation
   hosts: _vmhost_
   roles:
-  - role: vm-install
+  - role: vm/install
 
 - name: wait for new vm to start up
   hosts: "{{ vmname }}"
     set_fact:
       ansible_ssh_extra_args: ""
 
+- name: Apply VM configuration roles
+  hosts: "{{ vmname }}"
+  roles:
+  - role: vm/grub
+  - role: vm/network
+  - role: vm/guest
+
 - import_playbook: "host_playbooks/{{ vmname }}.yml"
 
 - name: reboot and wait for VM come back