diff options
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile index 96faf1392..2a1c4e9c4 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -36,7 +36,7 @@ Vagrant.configure('2') do |config| # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. - config.vm.provision 'ansible_local', run: 'always' do |ansible| + config.vm.provision 'main', type: 'ansible_local', run: 'always' do |ansible| ansible.playbook = 'vagrant_support/playbook.yml' ansible.extra_vars = { WEB_IP: WEB_IP, @@ -47,6 +47,12 @@ Vagrant.configure('2') do |config| } end + if ARGV.include? '--provision-with' + config.vm.provision 'update', type: 'ansible_local', run: 'never' do |update| + update.playbook = 'vagrant_support/update.yml' + end + end + config.vm.define 'db' do |db| db.vm.box = 'centos/6' |