You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
307B

  1. ---
  2. - name: write ssh_known_hosts file
  3. local_action: known_hosts
  4. args:
  5. path: "{{ playbook_dir }}/ssh_known_hosts"
  6. name: "{{ item }}"
  7. key: "{{ item }},{{ hostvars[item].ssh_ip }} ssh-ed25519 {{ hostvars[item].ssh_host_key_ed25519_public }}"
  8. with_items: "{{play_hosts}}"
  9. run_once: true