1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-12-27 21:07:53 +00:00

Add one more SSH key

This commit is contained in:
Sam Al-Sapti 2023-04-18 15:38:01 +02:00
parent f08f7a3940
commit d75dc208c8
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# vim: ft=yaml.ansible
---
username: mpc-player
ssh_keys:
- sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
mp_spdz_dir: /home/{{ username }}/MP-SPDZ
ssh_key: sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti

View file

@ -17,8 +17,9 @@
- name: Add public SSH key to user {{ username }}
ansible.posix.authorized_key:
user: "{{ username }}"
key: "{{ ssh_key }}"
key: "{{ ssh_keys | join('\n') }}"
exclusive: true
state: present
- name: Import role mp_spdz
ansible.builtin.import_role: