Replace vmname with hostname
[noc.git] / ansible / roles / vm / install / meta / main.yml
index 6f6bcf8..0822937 100644 (file)
@@ -1,6 +1,6 @@
 ---
 dependencies:
   - role: preseed
-    hostname: "{{ vmname }}"
+    hostname: "{{ hostname }}"
     # 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 | default(noc_ssh_keys) }}"