I need to run vagrant provision on every vagrant up
, is it possible? For example, this provision is run only on first vagrant up
:
config.vm.provision "shell", privileged: false, path: "provision.sh"
What should I specify to run it always on vagrant up
?
From vagrant 1.6, this issue has been fixed/addressed so you can specify if you want to run a specific provision on each up you can add :run => 'always'
to your provisioning line as:
config.vm.provision :shell, :run => 'always', :path => "provision.sh", :privileged => false
the default value is once
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.