10 lines
245 B
YAML
10 lines
245 B
YAML
---
|
|
- name: Add authorized key
|
|
hosts: all
|
|
remote_user: root
|
|
tasks:
|
|
- name: Add user authorized key
|
|
authorized_key:
|
|
user: deploy
|
|
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
|