add filter plugin to generate ssh key list
[noc.git] / ansible / host_vars / torwaechter / main.yml
index 016ec44..75e16de 100644 (file)
@@ -1,4 +1,6 @@
 ---
+ssh_users_tuergit: "{{ user_groups.noc }}"
+
 openwrt_arch: x86
 openwrt_target: geode
 openwrt_output_image_suffixes:
@@ -59,13 +61,13 @@ openwrt_mixin:
 
   /etc/ssh/authorized_keys.d/root:
     content: |-
-      {% for key in noc_ssh_keys %}
+      {% for key in ssh_users_root | user_ssh_keys(users) %}
       {{ key }}
       {% endfor %}
 
   /etc/ssh/authorized_keys.d/tuergit:
     content: |-
-      {% for key in noc_ssh_keys %}
+      {% for key in ssh_users_tuergit | user_ssh_keys(users) %}
       {{ key }}
       {% endfor %}