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.

15 lines
417B

  1. ---
  2. - name: make sure host_vars directory is present for host
  3. local_action: file
  4. args:
  5. path: "{{inventory_dir}}/host_vars/{{inventory_hostname}}"
  6. state: directory
  7. - name: record ssh host key in host_vars
  8. local_action: copy
  9. args:
  10. content:
  11. ssh_host_key_ed25519_public: "{{ ssh_host_key_ed25519_public }}"
  12. dest: "{{inventory_dir}}/host_vars/{{inventory_hostname}}/ssh_host_key.auto.json"