2016-06-08 20:59:47 +00:00
|
|
|
require_relative "../../../errors"
|
2015-02-10 14:28:00 +00:00
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Ansible
|
|
|
|
module Cap
|
|
|
|
module Guest
|
|
|
|
module Arch
|
|
|
|
module AnsibleInstall
|
|
|
|
|
2017-01-06 13:19:44 +00:00
|
|
|
def self.ansible_install(machine, install_mode, ansible_version, pip_args)
|
2016-06-08 20:59:47 +00:00
|
|
|
if install_mode == :pip
|
|
|
|
raise Ansible::Errors::AnsiblePipInstallIsNotSupported
|
|
|
|
else
|
2016-06-08 21:31:03 +00:00
|
|
|
machine.communicate.sudo "pacman -Syy --noconfirm"
|
|
|
|
machine.communicate.sudo "pacman -S --noconfirm ansible"
|
2016-06-08 20:59:47 +00:00
|
|
|
end
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|