Use user-defined hostname for SSH hostname

This commit is contained in:
Dan Hughes 2020-02-02 21:55:12 +00:00
parent 3720c5eb1f
commit 2a668f2b0e
No known key found for this signature in database
GPG key ID: 60D7AE3919F16B1C
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ congrats:
ca_key_pass: | ca_key_pass: |
"# The CA key password is {{ CA_password|default(omit) }} #" "# The CA key password is {{ CA_password|default(omit) }} #"
ssh_access: | 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: SSH_keys:
comment: algo@ssh comment: algo@ssh

View file

@ -28,7 +28,7 @@
dest: "configs/{{ IP_subject_alt_name }}/ssh_config" dest: "configs/{{ IP_subject_alt_name }}/ssh_config"
mode: "0600" mode: "0600"
content: | content: |
Host {{ IP_subject_alt_name }} algo Host {{ IP_subject_alt_name }} {{ algo_server_name }}
HostName {{ IP_subject_alt_name }} HostName {{ IP_subject_alt_name }}
User {{ ansible_ssh_user }} User {{ ansible_ssh_user }}
Port {{ ansible_ssh_port }} Port {{ ansible_ssh_port }}