Add check for known_hosts changing during tests. (#26470)

* Add check for known_hosts changing during tests.
* Don't use known hosts file for delegate_to test.
This commit is contained in:
Matt Clay
2017-07-06 00:47:28 -07:00
committed by GitHub
parent 2401fb5b92
commit c26a556929
2 changed files with 21 additions and 1 deletions

View File

@@ -2,4 +2,5 @@
set -eux
ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook test_delegate_to.yml -i ../../inventory -v "$@"
ANSIBLE_SSH_ARGS='-C -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null' \
ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook test_delegate_to.yml -i ../../inventory -v "$@"