From d4322019d32960525fd704d6bff7e1de5c89478d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 29 Jan 2023 10:21:59 +0200 Subject: [PATCH] change to id_ed25519 keys --- tasks/configure_certificates.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure_certificates.yml b/tasks/configure_certificates.yml index d90ac00..60bad59 100644 --- a/tasks/configure_certificates.yml +++ b/tasks/configure_certificates.yml @@ -50,15 +50,15 @@ - name: Check if there is a public key stat: - path: /root/.ssh/id_rsa.pub + path: /root/.ssh/id_ed25519.pub register: pubkey - name: Generate new key if it doesn't exist already - shell: ssh-keygen -t rsa -b 4096 -f /root/.ssh/id_rsa -N '' + shell: ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N '' when: not pubkey.stat.exists - name: Get SSH public key content - shell: cat /root/.ssh/id_rsa.pub + shell: cat /root/.ssh/id_ed25519.pub register: ssh_pubkey - name: Add SSH public key to local (Ansible control node) file