25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
325B

  1. ---
  2. - name: write local ssh_known_hosts file
  3. local_action: known_hosts
  4. args:
  5. path: "{{ lookup('env','HOME') }}/.ssh/known_hosts"
  6. name: "{{ item }}"
  7. key: "{{ lookup('template','ssh_host_key.j2') }}"
  8. with_items: "{{play_hosts}}"
  9. when: hostvars[item].ssh_host_key_ed25519_public is defined
  10. run_once: true