Files
ansible_uni_deploy/roles/import_ssh_key/tasks/main.yml
2023-04-19 17:02:43 +02:00

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 }}