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.

37 line
1022B

  1. ---
  2. - import_tasks: regenerate.yml
  3. when: ssh_host_key_state == 'regenerated'
  4. - import_tasks: scan.yml
  5. when: ssh_host_key_state == 'scanned'
  6. - import_tasks: setup.yml
  7. when:
  8. - ssh_host_key_state == 'configured'
  9. - ansible_ssh_host_key_ed25519_public is defined
  10. - import_tasks: fetch.yml
  11. when:
  12. - ssh_host_key_state == 'configured' or
  13. ssh_host_key_state == 'fetched' or
  14. ssh_host_key_state == 'regenerated'
  15. - ssh_host_key_state == 'configured'
  16. and not ansible_ssh_host_key_ed25519_public is defined
  17. or not ssh_host_key_state == 'configured'
  18. - import_tasks: save.yml
  19. when:
  20. ssh_host_key_state == 'configured' or
  21. ssh_host_key_state == 'scanned' or
  22. ssh_host_key_state == 'regenerated' or
  23. ssh_host_key_state == 'fetched'
  24. - import_tasks: local.yml
  25. when:
  26. - ssh_host_key_state == 'configured' or
  27. ssh_host_key_state == 'scanned' or
  28. ssh_host_key_state == 'regenerated' or
  29. ssh_host_key_state == 'saved'
  30. - ssh_update_local_known_hosts_file