From 24e551a1dcda16e604c47fa2a7a9653f0caf9a8f Mon Sep 17 00:00:00 2001 From: follower Date: Thu, 3 Apr 2014 03:17:36 +1300 Subject: [PATCH] Document solution for wrong SSH user with Ansible As per: https://github.com/mitchellh/vagrant/pull/2710#issuecomment-32192976 --- website/docs/source/v2/provisioning/ansible.html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/source/v2/provisioning/ansible.html.md b/website/docs/source/v2/provisioning/ansible.html.md index 51e4ac944..4d83c3e7e 100644 --- a/website/docs/source/v2/provisioning/ansible.html.md +++ b/website/docs/source/v2/provisioning/ansible.html.md @@ -246,3 +246,9 @@ TASK: [my_role | do something] ***************** <127.0.0.1> EXEC ['ssh', '-tt', '-vvv', '-o', 'ControlMaster=auto',... fatal: [ansible-devbox] => SSH encountered an unknown error. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue. ``` + +In a situation like the above, to override the `remote_user` specified in a play you can use the following line in your Vagrantfile `vm.provision` block: + +``` +ansible.extra_vars = { ansible_ssh_user: 'vagrant' } +```