feat(role): add ssh
This commit is contained in:
parent
87526f3b4d
commit
beadeaa0f8
|
@ -1,4 +1,5 @@
|
|||
default_roles:
|
||||
- ssh
|
||||
- alacritty
|
||||
- ctop
|
||||
- dconf
|
||||
|
|
10
roles/ssh/tasks/main.yaml
Normal file
10
roles/ssh/tasks/main.yaml
Normal 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 }}"
|
Loading…
Reference in a new issue