Explorar o código

Fix install of admin SSH keys (other than RSA)

Emmanuel Bouthenot %!s(int64=6) %!d(string=hai) anos
pai
achega
bfeb9fbfcd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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