feat(role): add ssh
This commit is contained in:
parent
87526f3b4d
commit
beadeaa0f8
2 changed files with 11 additions and 0 deletions
roles/ssh/tasks
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…
Add table
Add a link
Reference in a new issue