From f4e7a0aa59c947182ff908c71cb416e34c26a9ef Mon Sep 17 00:00:00 2001 From: AndrewPaglusch Date: Sun, 21 Sep 2025 21:24:09 -0500 Subject: [PATCH] workaround for attribute bug --- tasks/nebula.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tasks/nebula.yml b/tasks/nebula.yml index c28efc1..ece7198 100644 --- a/tasks/nebula.yml +++ b/tasks/nebula.yml @@ -42,12 +42,20 @@ - nebula-cert - name: Generate SSH host key for Nebula debug console - openssh_keypair: - path: /opt/nebula/ssh_host_ed25519_key - type: ed25519 + command: ssh-keygen -t ed25519 -f /opt/nebula/ssh_host_ed25519_key -N "" + args: + creates: /opt/nebula/ssh_host_ed25519_key + when: nebula_sshd_enabled + +- name: Set SSH host key permissions + file: + path: "{{ item }}" owner: root group: root mode: '0600' + with_items: + - /opt/nebula/ssh_host_ed25519_key + - /opt/nebula/ssh_host_ed25519_key.pub when: nebula_sshd_enabled - name: Read SSH key files and build registry