From 8293b763bd2d2b963d524dc5f7867f7f9fb3a20e Mon Sep 17 00:00:00 2001 From: Nicolas Quiniou-Briand Date: Tue, 16 Oct 2018 15:36:40 -0400 Subject: [PATCH] Add details and fix typo for run: "never" --- website/source/docs/provisioning/basic_usage.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/provisioning/basic_usage.html.md b/website/source/docs/provisioning/basic_usage.html.md index 12bc91ef9..b4d3dfe44 100644 --- a/website/source/docs/provisioning/basic_usage.html.md +++ b/website/source/docs/provisioning/basic_usage.html.md @@ -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