Sha256: f3dafbc5d95c33262b97321c2b5ef01656325655879df83688d0dc86edc9e781
Contents?: true
Size: 1.73 KB
Versions: 10
Compression:
Stored size: 1.73 KB
Contents
require_relative "../pip/pip" module VagrantPlugins module Ansible module Cap module Guest module Debian module AnsibleInstall def self.ansible_install(machine, install_mode, ansible_version, pip_args, pip_install_cmd = "") case install_mode when :pip pip_setup machine, pip_install_cmd Pip::pip_install machine, "ansible", ansible_version, pip_args, true when :pip_args_only pip_setup machine, pip_install_cmd Pip::pip_install machine, "", "", pip_args, false else ansible_apt_install machine end end private def self.ansible_apt_install(machine) install_backports_if_wheezy_release = <<INLINE_CRIPT CODENAME=`lsb_release -cs` if [ x$CODENAME == 'xwheezy' ]; then echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/wheezy-backports.list fi INLINE_CRIPT machine.communicate.sudo install_backports_if_wheezy_release machine.communicate.sudo "apt-get update -y -qq" machine.communicate.sudo "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --option \"Dpkg::Options::=--force-confold\" ansible" end def self.pip_setup(machine, pip_install_cmd = "") machine.communicate.sudo "apt-get update -y -qq" machine.communicate.sudo "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --option \"Dpkg::Options::=--force-confold\" build-essential curl git libssl-dev libffi-dev python-dev" Pip::get_pip machine, pip_install_cmd end end end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems