feat: add ssh keys playbook
This commit is contained in:
parent
7bbd83171a
commit
1fb19fde53
1 changed files with 10 additions and 0 deletions
10
playbooks/add-ssh-keys.yaml
Normal file
10
playbooks/add-ssh-keys.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- 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") }}'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue