ansible: Make vm/install depend on debian-installer
[noc.git] / ansible / roles / vm / install / meta / main.yml
index 6f6bcf8..3aaa137 100644 (file)
@@ -1,6 +1,10 @@
 ---
 dependencies:
+  - role: debian-installer
+    distros:
+      - distro: "{{ install_distro }}"
+        codename: "{{ install_codename }}"
+        arch: [ "{{ hostvars[hostname].install_cooked.arch | default('amd64') }}" ]
   - role: preseed
-    hostname: "{{ vmname }}"
-    # TODO: Find a way to eliminate the duplicate defaults.
-    ssh_keys: "{{ hostvars[vmname].ssh_keys | default(noc_ssh_keys) }}"
+    ssh_keys: "{{ hostvars[hostname].ssh_keys }}"
+    install_interface: enp1s1