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.

28 lines
681B

  1. ---
  2. - include: scan.yml
  3. when:
  4. ssh_host_key_state is defined and
  5. ssh_host_key_state == 'scanned'
  6. #- include: setup.yml
  7. - include: fetch.yml
  8. when:
  9. root_target_directory is defined and (
  10. not ssh_host_key_state is defined or
  11. ssh_host_key_state == 'fetched' )
  12. - include: save.yml
  13. - name: write ssh_known_hosts file
  14. local_action: known_hosts
  15. args:
  16. path: 'ssh_known_hosts'
  17. name: '{{ inventory_hostname }}'
  18. key: "{{ inventory_hostname }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
  19. when:
  20. not ssh_host_key_state is defined or
  21. ssh_host_key_state == 'configured' or
  22. ssh_host_key_state == 'scanned'