Files
ansible/keys.yml
2024-09-16 19:48:11 +00:00

17 lines
421 B
YAML

---
- hosts: hosts
tasks:
- name: push ssh key from this computer
ansible.posix.authorized_key:
user: dan
state: present
key: "{{ lookup('file', '/home/dan/.ssh/id_ed25519.pub') }}"
- name: Push laptop key
ansible.posix.authorized_key:
user: dan
state: present
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBTniEGOsRiG81z6DWhEWxjZUXdQU144W46bm1Q0lIE eddsa-key-20240916"