فهرست منبع

Fix a bug in root ssh key deployment

Emmanuel Bouthenot 11 سال پیش
والد
کامیت
e0610713a3
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      roles/common/tasks/base.yml

+ 2 - 1
roles/common/tasks/base.yml

@@ -66,4 +66,5 @@
   with_items: ${admins}
 
 - name: Install SSH key for root
-  action: authorized_key user=root key="$FILE(roles/common/data/users/${admin_user}/id_rsa.pub)" state=present
+  action: authorized_key user=root key="$FILE(roles/common/data/users/${item.user}/id_rsa.pub)" state=present
+  with_items: ${admins}