Skip to content

Commit

Permalink
doc: update ansible parallel provisioning tip
Browse files Browse the repository at this point in the history
As of Vagrant 1.7+, the ansible parallel provisioning trick is easier to
be implemented with `config.ssh.insert_key=false` (fallback to previous
behaviour).

Close #5048

[ci skip]
  • Loading branch information
gildegoma committed Jan 12, 2015
1 parent 9d74dcd commit fafaa00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/docs/source/v2/provisioning/ansible.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ by the sudo command.
Vagrant is designed to provision [multi-machine environments](/v2/multi-machine) in sequence, but the following configuration pattern can be used to take advantage of Ansible parallelism:

```
# By default, Vagrant 1.7+ automatically inserts a different insecure keypair
# for each new VM created. The easiest way to use the same keypair for all
# the machines is to disable this feature and rely on the legacy insecure key.
config.ssh.insert_key = false
config.vm.define 'machine2' do |machine|
machine.vm.hostname = 'machine2'
machine.vm.network "private_network", ip: "192.168.77.22"
Expand Down

0 comments on commit fafaa00

Please sign in to comment.