Add details and fix typo for run: "never"

This commit is contained in:
Nicolas Quiniou-Briand 2018-10-16 15:36:40 -04:00 committed by GitHub
parent dd3d6c7cf2
commit 8293b763bd
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