10 lines
234 B
YAML
10 lines
234 B
YAML
---
|
|
- name: Add ssh public key to hosts
|
|
hosts: all
|
|
# vars:
|
|
tasks:
|
|
- name: add keys
|
|
ansible.posix.authorized_key:
|
|
user: aleidk
|
|
state: present
|
|
key: '{{ lookup("file", "~/.ssh/id_ed25519.pub") }}'
|