From 53ae27b2500f672de41c9f819861822a795826ce Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Fri, 24 Apr 2020 10:36:36 -0400 Subject: [PATCH] evobackup-client now uses the default ed25519 key of the server We used to prefer creating a specific one for backups, but everybody kept thinking the wrong key was being used and "fixing" it. The advantages of having a specific key for backups did not outweigh the challenge of creating a culture change. --- evobackup-client/defaults/main.yml | 3 ++- evobackup-client/tasks/ssh_key.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/evobackup-client/defaults/main.yml b/evobackup-client/defaults/main.yml index 24c9402c..56c0e5d8 100644 --- a/evobackup-client/defaults/main.yml +++ b/evobackup-client/defaults/main.yml @@ -1,5 +1,6 @@ --- -evobackup_client__root_key_path: "/root/.ssh/evobackup_id" +evobackup_client__root_key_path: "/root/.ssh/id_ed25519" +evobackup_client__root_key_type: "ed25519" evobackup_client__cron_path: "/etc/cron.daily/zzz_evobackup" evobackup_client__cron_template_name: "zzz_evobackup" evobackup_client__mail: null diff --git a/evobackup-client/tasks/ssh_key.yml b/evobackup-client/tasks/ssh_key.yml index 6327dd74..6438634e 100644 --- a/evobackup-client/tasks/ssh_key.yml +++ b/evobackup-client/tasks/ssh_key.yml @@ -5,7 +5,7 @@ name: root generate_ssh_key: true ssh_key_file: "{{ evobackup_client__root_key_path }}" - ssh_key_type: rsa + ssh_key_type: "{{ evobackup_client__root_key_type }}" register: evobackup_client__root_key tags: - evobackup_client