vagrant/test/unit/plugins/provisioners
Gilles Cornu f96636587a provisioners/ansible: don't read/write known_hosts
Like Vagrant's default SSH behaviors (e.g ssh or ssh-config commands),
the Ansible provisioner should by default not modify or read the user
known host file (e.g. ~/.ssh/known_hosts).

Given that `UserKnownHostsFile=/dev/null` SSH option is usually combined
with `StrictHostKeyChecking=no`, it seems quite reasonable to bind the
activation/disactivation of both options to `host_key_checking`
provisioner attribute.

For the records, a discussion held in Ansible-Development mailing list
clearly confirmed that there is no short-term plan to adapt Ansible to
offer an extra option or change the behavior of
ANSIBLE_HOST_KEY_CHECKING. For this reason, the current implementation
seems reasonable and should be stable on the long run.

Close #3900

Related References:

- https://groups.google.com/forum/#!msg/ansible-devel/iuoZs1oImNs/6xrj5oa1CmoJ
- https://github.com/ansible/ansible/issues/9442
2014-11-30 09:55:48 +01:00
..
ansible provisioners/ansible: don't read/write known_hosts 2014-11-30 09:55:48 +01:00
chef Automatically install Chef when provisioning with Chef 2014-11-07 15:56:22 -05:00
docker provisioners/docker: Change to VagrantPlugins::DockerProvisioner namespace 2014-04-21 13:51:30 -07:00
file provisioners/file: add unit tests for the provisioner 2014-02-01 01:23:57 -03:00
salt provisioners/salt: error if minion_config missing 2014-04-19 23:24:30 +02:00
shell adding failing tests for fixnum args in an array. 2014-07-22 15:41:01 -04:00
support/shared provisioners/ansible: use strict boolean options 2014-04-12 13:48:15 +02:00