|
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
- name: fetch ssh host key |
|
|
|
command: |
|
|
|
cat "{{ root_target_directory | default("") }}/etc/ssh/ssh_host_{{ ssh_host_key_type }}_key.pub" |
|
|
|
cat "{{ root_target_directory | default("") }}/etc/ssh/ssh_host_ed25519_key.pub" |
|
|
|
register: _ssh_host_key_cat_result |
|
|
|
changed_when: false |
|
|
|
|
|
|
@@ -10,4 +10,3 @@ |
|
|
|
set_fact: |
|
|
|
ssh_host_key_ed25519_public: "{{ _ssh_host_key_cat_result.stdout.split()[1] }}" |
|
|
|
changed_when: ssh_host_key_ed25519_public != _ssh_host_key_cat_result.stdout.split()[1] |
|
|
|
when: ssh_host_key_type == "ed25519" |