Merge pull request #20 from realraum/vm-improvements
[noc.git] / ansible / vm-install.yml
index e0685f9..507906f 100644 (file)
@@ -14,6 +14,8 @@
       group: _vmhost_
   # TODO: add some sanity checks
 
+- import_playbook: remove_known_hosts.yml
+
 - name: basic installation
   hosts: _vmhost_
   roles:
     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