18 lines
349 B
YAML
18 lines
349 B
YAML
---
|
|
- 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 }}
|