Skip to content

Conversation

grenzr
Copy link

@grenzr grenzr commented Dec 1, 2015

This is useful if you need to install Ansible at a specific git url including branch/tag.

Personally, I needed to pip install the latest stable-1.9 branch of Ansible into my machine to pick up a specific change which hadn't made its way into a released version yet.

Just set ansible_git_url config param in your Vagrantfile for example:

  provisioner = Vagrant::Util::Platform.windows? ? :guest_ansible : :ansible

  config.vm.provision provisioner do |ansible|
    ansible.playbook = "ansible/devbox.yml"
    if provisioner == :guest_ansible
      ansible.ansible_git_url = "https://github.com/ansible/[email protected]"
    end
   ...
  end

@slicedevca
Copy link
Collaborator

@grenzr Hi just joined this project as a maintainer. Could you please explain your use case and how you tested your solution so that I can test as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants