feat(role): add ssh

This commit is contained in:
Oliver Davies 2022-04-26 20:53:59 +01:00
parent 87526f3b4d
commit beadeaa0f8
2 changed files with 11 additions and 0 deletions

View file

@ -1,4 +1,5 @@
default_roles:
- ssh
- alacritty
- ctop
- dconf

10
roles/ssh/tasks/main.yaml Normal file
View file

@ -0,0 +1,10 @@
---
- name: Copy SSH keys
copy:
content: "{{ ssh_key_item.value }}"
dest: "{{ ansible_user_dir }}/.ssh/{{ ssh_key_item.key }}"
mode: 0400
loop_control:
loop_var: ssh_key_item
no_log: true
with_items: "{{ ssh_key | default({}) | dict2items }}"