ansible: Make vm/install depend on debian-installer
authornicoo <nicoo@realraum.at>
Sat, 24 Nov 2018 22:16:16 +0000 (23:16 +0100)
committernicoo <nicoo@realraum.at>
Sat, 24 Nov 2018 23:32:30 +0000 (00:32 +0100)
ansible/roles/vm/install/meta/main.yml

index 9d10818..3aaa137 100644 (file)
@@ -1,5 +1,10 @@
 ---
 dependencies:
+  - role: debian-installer
+    distros:
+      - distro: "{{ install_distro }}"
+        codename: "{{ install_codename }}"
+        arch: [ "{{ hostvars[hostname].install_cooked.arch | default('amd64') }}" ]
   - role: preseed
     ssh_keys: "{{ hostvars[hostname].ssh_keys }}"
     install_interface: enp1s1