You can set the provisioner to run: always, like you mention, and it should
copy each time. The file _should_ overwrite an existing one if it's there.
https://www.vagrantup.com/docs/provisioning/basic_usage.html and the file
copy will happen each time you "vagrant up".
Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: "echo hello",
run: "always"end
On Fri, Feb 21, 2020 at 8:34 AM dragon788 <[email protected]> wrote:
> You'll need to run `vagrant up --provision` each time. I can't recall if
> there is an option for `provision always` available in the Vagrantfile on
> individual provisioners.
>
> I'd recommend just using the rsync shared folder implementation depending
> on where you are wanting to copy the file.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/5fd1a652-7645-4b08-a98c-0227b643dd8d%40googlegroups.com
> .
>
--
JP Toto | [email protected] | http://jptoto.jp | @jptoto
<http://twitter.com/jptoto>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAAYNrX_HcjD92bELU%2B62CjTnYHhVEh-wP4OVeWC%3DTD36_0P4vg%40mail.gmail.com.