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 943B

8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - include: regenerate.yml
  3. when: ssh_host_key_state == 'regenerated'
  4. - include: scan.yml
  5. when: ssh_host_key_state == 'scanned'
  6. - include: setup.yml
  7. when:
  8. - ssh_host_key_state == 'configured'
  9. - ansible_ssh_host_key_ed25519_public is defined
  10. - include: 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. - include: 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. - include: file.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'