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.

local.yml 333B

7 years ago
12345678910
  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: "{{ inventory_hostname }}"
  7. key: "{{ inventory_hostname }},{{ ssh_host }} ssh-ed25519 {{ ssh_host_key_ed25519_public }}"
  8. when: ssh_host_key_ed25519_public is defined
  9. throttle: 1