Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Commit

Permalink
'ansible' provisioner doesn't have the issue hashicorp/vagrant#6793.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGtatsuro committed Feb 10, 2016
1 parent 7361e67 commit e98f62d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ Vagrant.configure(2) do |config|
pip install ansible
SHELL

# Patch for https://github.com/mitchellh/vagrant/issues/6793
config.vm.provision 'shell' do |s|
s.inline = '[[ ! -f $1 ]] || grep -F -q "$2" $1 || sed -i "/__main__/a \\ $2" $1'
s.args = ['/usr/local/bin/ansible-galaxy', "if sys.argv == ['/usr/local/bin/ansible-galaxy', '--help']: sys.argv.insert(1, 'info')"]
end

config.vm.provision 'ansible' do |ansible|
ansible.galaxy_role_file = 'requirements.yml'
ansible.playbook = 'site.yml'
Expand Down

0 comments on commit e98f62d

Please sign in to comment.