From 0a7f9d271efb4f97aaddcb39c173e986f5357d59 Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Thu, 8 Jun 2017 23:07:52 +0530 Subject: Skipping some steps in ansible for rapid debugging (#92) * Adding --no-templates to checksetup * my proposed changes --- Vagrantfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Vagrantfile') 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' -- cgit v1.2.3-24-g4f1b