Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #147 from oxyc/patch-1
Browse files Browse the repository at this point in the history
PR #147: Allow Vagrantfile to be loaded from scripts in other directories.
  • Loading branch information
geerlingguy committed Jul 3, 2015
2 parents 7156dda + 7e87005 commit 3d5b33b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if is_windows
# Provisioning configuration for shell script (for Windows).
config.vm.provision "shell" do |sh|
sh.path = "provisioning/JJG-Ansible-Windows/windows.sh"
sh.args = "provisioning/playbook.yml"
sh.path = "#{dir}/provisioning/JJG-Ansible-Windows/windows.sh"
sh.args = "#{dir}/provisioning/playbook.yml"
end
else
# Provisioning configuration for Ansible (for Mac/Linux hosts).
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.playbook = "#{dir}/provisioning/playbook.yml"
ansible.sudo = true
end
end
Expand Down

0 comments on commit 3d5b33b

Please sign in to comment.