Last active
September 19, 2017 17:46
-
-
Save oxyc/fbd7f6445ad96446fe263b5f1e370fc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Vagrantfile b/Vagrantfile | |
index 774121e..bb20d7b 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -29,9 +29,11 @@ vconfig = load_config([ | |
provisioner = vconfig['force_ansible_local'] ? :ansible_local : vagrant_provisioner | |
if provisioner == :ansible | |
+ ansible_config_file = "#{host_drupalvm_dir}/provisioning/ansible.cfg" | |
playbook = "#{host_drupalvm_dir}/provisioning/playbook.yml" | |
config_dir = host_config_dir | |
else | |
+ ansible_config_file = "#{guest_drupalvm_dir}/provisioning/ansible.cfg" | |
playbook = "#{guest_drupalvm_dir}/provisioning/playbook.yml" | |
config_dir = guest_config_dir | |
end | |
@@ -103,6 +105,8 @@ Vagrant.configure('2') do |config| | |
end | |
config.vm.provision provisioner do |ansible| | |
+ ansible.config_file = ansible_config_file unless ENV['DRUPALVM_DEBUG'] | |
+ ansible.verbose = ENV['DRUPALVM_DEBUG'] | |
ansible.playbook = playbook | |
ansible.extra_vars = { | |
config_dir: config_dir, | |
diff --git a/provisioning/ansible.cfg b/provisioning/ansible.cfg | |
index 4b1740e..a43fedc 100644 | |
--- a/provisioning/ansible.cfg | |
+++ b/provisioning/ansible.cfg | |
@@ -1,5 +1,6 @@ | |
[defaults] | |
roles_path = ./roles | |
+deprecation_warnings = False | |
[ssh_connection] | |
pipelining = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment