Reputation: 9957
I'm using Vagrant and the ansible_local provisioner. Is there a way to specify where Ansible will be downloaded from? install_mode only selects how to install Ansible, not from where.
*EDIT With "where" I mean specify the download location.
Upvotes: 0
Views: 606
Reputation: 68459
It doesn't look like you could specify the download source location. Either APT, RPM, or pip installation commands are hardcoded in Vagrant. For example:
ansible_install.rb (for Debian):
def self.ansible_apt_install(machine)
// skipped
machine.communicate.sudo install_backports_if_wheezy_release
machine.communicate.sudo "apt-get update -y -qq"
machine.communicate.sudo "apt-get install -y -qq ansible"
end
def self.pip_setup(machine)
machine.communicate.sudo "apt-get update -y -qq"
machine.communicate.sudo "apt-get install -y -qq build-essential curl git libssl-dev libffi-dev python-dev"
Pip::get_pip machine
end
pip.rb (when using :pip
):
machine.communicate.sudo "pip install #{upgrade_arg}#{package}#{version_arg}"
That said, if you want to avoid downloading on each vagrant up
, you could:
Upvotes: 2