In the git module let ssh do its own host checking

There are too many possible special cases for Ansible to be able to
precheck known_hosts files without introducing all kinds of false
failures.

* Alternative known_hosts paths
* Alternative host name aliases
* ssh host certificates
* SSHFP + DNSSEC

Fixes #24860
This commit is contained in:
Andreas Olsson 2017-06-25 19:05:16 +02:00 committed by Toshio Kuratomi
commit 05dc76f3b2
3 changed files with 15 additions and 45 deletions

View file

@ -16,7 +16,6 @@
- assert:
that:
- 'git_result.failed'
- 'git_result.msg == "github.com has an unknown hostkey. Set accept_hostkey to True or manually add the hostkey prior to running the git module"'
- name: checkout git@github.com repo with accept_hostkey (expected pass)
git: