Explorar el Código

Fix install of admin SSH keys (other than RSA)

Emmanuel Bouthenot hace 6 años
padre
commit
bfeb9fbfcd
Se han modificado 1 ficheros con 2 adiciones y 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