15 lines
460 B
YAML
15 lines
460 B
YAML
- name: Add admins' authorized keys
|
|
authorized_key:
|
|
key: "{{ item }}"
|
|
user: "{{ ansible_user_id }}"
|
|
loop: "{{ admin_public_keys }}"
|
|
- name: Copy host public key
|
|
template:
|
|
src: "{{ role_path }}/templates/ssh_host_ed25519_key.pub.j2"
|
|
dest: "/etc/ssh/ssh_host_ed25519_key.pub"
|
|
mode: 0644
|
|
- name: Copy host private key
|
|
copy:
|
|
src: "{{ role_path }}/files/ssh_host_ed25519_key"
|
|
dest: "/etc/ssh/ssh_host_ed25519_key"
|
|
mode: 0600
|