From 0a99db78176e39bb9d0f47f0924680eaf740e1e8 Mon Sep 17 00:00:00 2001 From: Arnaud Nelissen Date: Wed, 4 Feb 2026 21:32:23 +0100 Subject: [PATCH] Added copy-ssh-key.yaml --- files/id_ed25519_proxmox.pub | 1 + files/id_ed25519_semaphore.pub | 1 + playbooks/copy-ssh-key.yaml | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 files/id_ed25519_proxmox.pub create mode 100644 files/id_ed25519_semaphore.pub create mode 100644 playbooks/copy-ssh-key.yaml diff --git a/files/id_ed25519_proxmox.pub b/files/id_ed25519_proxmox.pub new file mode 100644 index 0000000..86de8b0 --- /dev/null +++ b/files/id_ed25519_proxmox.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPcfT2ouxUaCwGBTT5OyR//M/9N5EB2PjXUoPT+ncASf proxmox diff --git a/files/id_ed25519_semaphore.pub b/files/id_ed25519_semaphore.pub new file mode 100644 index 0000000..d09d917 --- /dev/null +++ b/files/id_ed25519_semaphore.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZYhHsurKUxGWITSL6WTBqwI7DT9OCvwdK55htUWVKB semaphore diff --git a/playbooks/copy-ssh-key.yaml b/playbooks/copy-ssh-key.yaml new file mode 100644 index 0000000..87e0110 --- /dev/null +++ b/playbooks/copy-ssh-key.yaml @@ -0,0 +1,13 @@ +- hosts: all + become: yes + + tasks: + - name: Install Proxmox Root SSH key + authorized_key: + user: root + key: "{{ lookup('file', 'files/id_ed25519_proxmox.pub') }}" + + - name: Install Semaphore Root SSH key + authorized_key: + user: root + key: "{{ lookup('file', 'files/id_ed25519_semaphore.pub') }}"