--- - 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"