Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

32 рядки
846B

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