File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Vagrant.configure('2') do |config|
2626 host . vm . box = box_settings [ 'box' ] unless not box_settings . key? 'box'
2727
2828 host . vm . network box_settings [ 'network' ] [ 'name' ] , ip : box_settings [ 'network' ] [ 'ip' ] unless box_settings . key? 'network'
29+ host . vm . synced_folder '.' , '/vagrant' , disabled : true
2930
3031 # puts "[DEBUG] applying virtualbox settings for #{box_name} box..."
3132 customize_args = [ "modifyvm" , :id ]
@@ -36,9 +37,25 @@ Vagrant.configure('2') do |config|
3637
3738 # puts "[DEBUG] provision using ansible vagrant playbook..."
3839 host . vm . provision 'ansible' do |ansible |
40+
41+ ansible . host_vars = {
42+ 'xenial64.vagrant.dev' => {
43+ 'ansible_python_interpreter' => '/usr/bin/python2.7' ,
44+ 'playbook_python2' => true
45+ } ,
46+ 'yakkety64.vagrant.dev' => {
47+ 'ansible_python_interpreter' => '/usr/bin/python2.7' ,
48+ 'playbook_python2' => true
49+ }
50+ }
51+
3952 ansible . playbook = PLAYBOOK
4053 ansible . verbose = 'v'
4154 ansible . skip_tags = 'test'
55+ ansible . extra_vars = {
56+ 'env' : 'vagrant' ,
57+ 'vagrant_box' : "#{ box_name } "
58+ }
4259 end
4360 end
4461 end
You can’t perform that action at this time.
0 commit comments