您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
792B

  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'