This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ vconfig = load_config([
2929
3030provisioner = vconfig [ 'force_ansible_local' ] ? :ansible_local : vagrant_provisioner
3131if provisioner == :ansible
32- playbook = "#{ host_drupalvm_dir } /provisioning/playbook.yml "
32+ provisioning_dir = "#{ host_drupalvm_dir } /provisioning"
3333 config_dir = host_config_dir
3434else
35- playbook = "#{ guest_drupalvm_dir } /provisioning/playbook.yml "
35+ provisioning_dir = "#{ guest_drupalvm_dir } /provisioning"
3636 config_dir = guest_config_dir
3737end
3838
@@ -103,14 +103,17 @@ Vagrant.configure('2') do |config|
103103 end
104104
105105 config . vm . provision provisioner do |ansible |
106- ansible . playbook = playbook
106+ ansible . playbook = " #{ provisioning_dir } / playbook.yml"
107107 ansible . extra_vars = {
108108 config_dir : config_dir ,
109109 drupalvm_env : drupalvm_env
110110 }
111111 ansible . raw_arguments = Shellwords . shellsplit ( ENV [ 'DRUPALVM_ANSIBLE_ARGS' ] ) if ENV [ 'DRUPALVM_ANSIBLE_ARGS' ]
112112 ansible . tags = ENV [ 'DRUPALVM_ANSIBLE_TAGS' ]
113113 ansible . verbose = ENV [ 'DRUPALVM_DEBUG' ]
114+ unless ENV [ 'ANSIBLE_CONFIG' ]
115+ ansible . config_file = "#{ provisioning_dir } /ansible#{ '.debug' if ENV [ 'DRUPALVM_DEBUG' ] } .cfg"
116+ end
114117 # Use pip to get the latest Ansible version when using ansible_local.
115118 provisioner == :ansible_local && ansible . install_mode = 'pip'
116119 end
Original file line number Diff line number Diff line change 11[defaults]
22roles_path = ./roles
3+ deprecation_warnings = False
34
45[ssh_connection]
56pipelining = True
Original file line number Diff line number Diff line change 1+ [defaults]
2+ roles_path = ./roles
3+
4+ [ssh_connection]
5+ pipelining = True
You can’t perform that action at this time.
0 commit comments