From 2a668f2b0e23d4dcf5d4e22637fe956bc08ec82b Mon Sep 17 00:00:00 2001 From: Dan Hughes Date: Sun, 2 Feb 2020 21:55:12 +0000 Subject: [PATCH] Use user-defined hostname for SSH hostname --- config.cfg | 2 +- server.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.cfg b/config.cfg index 7d3027e..6446398 100644 --- a/config.cfg +++ b/config.cfg @@ -146,7 +146,7 @@ congrats: ca_key_pass: | "# The CA key password is {{ CA_password|default(omit) }} #" ssh_access: | - "# Shell access: ssh -F configs/{{ ansible_ssh_host|default(omit) }}/ssh_config algo #" + "# Shell access: ssh -F configs/{{ ansible_ssh_host|default(omit) }}/ssh_config {{ algo_server_name }} #" SSH_keys: comment: algo@ssh diff --git a/server.yml b/server.yml index fb472f0..4036cf3 100644 --- a/server.yml +++ b/server.yml @@ -28,7 +28,7 @@ dest: "configs/{{ IP_subject_alt_name }}/ssh_config" mode: "0600" content: | - Host {{ IP_subject_alt_name }} algo + Host {{ IP_subject_alt_name }} {{ algo_server_name }} HostName {{ IP_subject_alt_name }} User {{ ansible_ssh_user }} Port {{ ansible_ssh_port }}