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

13 行
422B

  1. ---
  2. - name: fetch ssh host key
  3. command:
  4. cat "{{ root_target_directory | default("") }}/etc/ssh/ssh_host_ed25519_key.pub"
  5. register: _ssh_host_key_cat_result
  6. changed_when: false
  7. - name: set fetched 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]