From 1d328f7021f729cbcdb4360018785b1999bb6efb Mon Sep 17 00:00:00 2001 From: Gilles Cornu Date: Thu, 6 Mar 2014 23:55:08 +0100 Subject: [PATCH] provisioners/ansible: Disable host key checking Close #3060 --- plugins/provisioners/ansible/config.rb | 2 +- website/docs/source/v2/provisioning/ansible.html.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/provisioners/ansible/config.rb b/plugins/provisioners/ansible/config.rb index 6232d8ece..9c35f089e 100644 --- a/plugins/provisioners/ansible/config.rb +++ b/plugins/provisioners/ansible/config.rb @@ -32,7 +32,7 @@ module VagrantPlugins @start_at_task = UNSET_VALUE @raw_arguments = UNSET_VALUE @groups = UNSET_VALUE - @host_key_checking = "true" + @host_key_checking = "false" end def finalize! diff --git a/website/docs/source/v2/provisioning/ansible.html.md b/website/docs/source/v2/provisioning/ansible.html.md index 4f2ff5185..6a841e0e9 100644 --- a/website/docs/source/v2/provisioning/ansible.html.md +++ b/website/docs/source/v2/provisioning/ansible.html.md @@ -192,7 +192,7 @@ by the sudo command. * `ansible.raw_arguments` can be set to an array of strings corresponding to a list of `ansible-playbook` arguments (e.g. `['--check', '-M /my/modules']`). It is an *unsafe wildcard* that can be used to apply Ansible options that are not (yet) supported by this Vagrant provisioner. Following precedence rules apply: * Any supported options (described above) will override conflicting `raw_arguments` value (e.g. `--tags` or `--start-at-task`) * Vagrant default user authentication can be overridden via `raw_arguments` (with custom values for `--user` and `--private-key`) -* `ansible.host_key_checking` can be set to `false` which will disable host key checking and prevent `"FAILED: (25, 'Inappropriate ioctl for device')"` errors from being reported during provisioner runs. The default value is `true`, which matches the default behavior of Ansible 1.2.1 and later. +* `ansible.host_key_checking` can be set to `true` which will enable host key checking. As Vagrant 1.5, the default value is `false`, to avoid connection problems when creating new virtual machines. ## Tips and Tricks