ソースを参照

Fix install of admin SSH keys (other than RSA)

Emmanuel Bouthenot 6 年 前
コミット
bfeb9fbfcd
1 ファイル変更2 行追加2 行削除
  1. 2 2
      roles/common/tasks/base.yml

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

@@ -136,12 +136,12 @@
   when: admins
 
 - name: 'Install SSH key for unprivileged user'
-  authorized_key: user="{{item.user}}" key="{{lookup('file', 'data/users/' + item.user + '/id_rsa.pub')}}" state=present
+  authorized_key: user="{{item.user}}" key="{{lookup('file', 'data/users/' + item.user + '/sshkey.pub')}}" state=present
   with_items: '{{ admins }}'
   when: admins
 
 - name: 'Install SSH key for root'
-  authorized_key: user=root key="{{lookup('file', 'data/users/' + item.user + '/id_rsa.pub')}}" state=present
+  authorized_key: user=root key="{{lookup('file', 'data/users/' + item.user + '/sshkey.pub')}}" state=present
   with_items: '{{ admins }}'
   when: admins