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.

main.yml 792B

8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
123456789101112131415161718192021222324252627282930
  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. when:
  8. ssh_host_key_state is defined and
  9. ssh_host_key_state == 'setup'
  10. - include: fetch.yml
  11. when:
  12. root_target_directory is defined and (
  13. not ssh_host_key_state is defined or
  14. ssh_host_key_state == 'fetched' )
  15. - include: save.yml
  16. - name: write ssh_known_hosts file
  17. local_action: known_hosts
  18. args:
  19. path: "{{ playbook_dir }}/ssh_known_hosts"
  20. name: '{{ inventory_hostname }}'
  21. key: "{{ inventory_hostname }},{{ ssh_ip }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
  22. when:
  23. not ssh_host_key_state is defined or
  24. ssh_host_key_state == 'configured' or
  25. ssh_host_key_state == 'scanned'