Well, first push
This commit is contained in:
17
roles/import_ssh_key/tasks/main.yml
Normal file
17
roles/import_ssh_key/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Dowload
|
||||
ansible.builtin.uri:
|
||||
url: https://github.com/MatousVondrejka.keys
|
||||
method: GET
|
||||
return_content: true
|
||||
register: ssh_key
|
||||
|
||||
- name: Setting
|
||||
ansible.builtin.blockinfile:
|
||||
state: present
|
||||
insertafter: EOF
|
||||
path: ~/.ssh/authorized_keys
|
||||
mode: '0664'
|
||||
create: true
|
||||
block: |
|
||||
{{ ssh_key.content }}
|
||||
Reference in New Issue
Block a user