diff --git a/playbooks/add-ssh-keys.yaml b/playbooks/add-ssh-keys.yaml new file mode 100644 index 0000000..f60ffa2 --- /dev/null +++ b/playbooks/add-ssh-keys.yaml @@ -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") }}'