You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
303 B

---
- hosts: all
remote_user: root
become: no
vars_files: vault
vars:
keystodeploy: "{{ vault_keystodeploy }}"
tasks:
- name: Deploy SSH-Keys to remote host
authorized_key:
user: root
key: "{{ keystodeploy|map(attribute='sshkey')|join('\n') }}"
exclusive: true