Merge pull request #10302 from nqb/patch-1

Add details and fix typo for run: "never" option
This commit is contained in:
Brian Cain 2018-10-16 13:23:34 -07:00 committed by GitHub
commit 6443fe7109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ run the shell one, you can do `vagrant provision --provision-with shell`.
The arguments to `--provision-with` can be the provisioner type (such as
"shell") or the provisioner name (such as "bootstrap" from above).
## Run Once or Always
## Run Once, Always or Never
By default, provisioners are only run once, during the first `vagrant up`
since the last `vagrant destroy`, unless the `--provision` flag is set,
@ -118,7 +118,7 @@ of the block, as shown below:
```ruby
Vagrant.configure("2") do |config|
config.vm.provision "shell", run: "always" do |s|
config.vm.provision "bootstrap", type: "shell", run: "never" do |s|
s.inline = "echo hello"
end
end