您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
455B

  1. ---
  2. - name: fetch ssh host key
  3. command:
  4. cat "{{ root_target_directory }}/etc/ssh/ssh_host_{{ ssh_host_key_type }}_key.pub"
  5. register: _ssh_host_key_cat_result
  6. changed_when: false
  7. - name: set ssh_host_key_ed25519_public
  8. set_fact:
  9. ssh_host_key_ed25519_public: "{{ _ssh_host_key_cat_result.stdout.split()[1] }}"
  10. changed_when: ssh_host_key_ed25519_public != _ssh_host_key_cat_result.stdout.split()[1]
  11. when: ssh_host_key_type == "ed25519"