25 lines
610 B
Ruby
25 lines
610 B
Ruby
require_relative "../../../errors"
|
|
|
|
module VagrantPlugins
|
|
module Ansible
|
|
module Cap
|
|
module Guest
|
|
module Arch
|
|
module AnsibleInstall
|
|
|
|
def self.ansible_install(machine, install_mode, ansible_version, pip_args)
|
|
if install_mode != :default
|
|
raise Ansible::Errors::AnsiblePipInstallIsNotSupported
|
|
else
|
|
machine.communicate.sudo "pacman -Syy --noconfirm"
|
|
machine.communicate.sudo "pacman -S --noconfirm ansible"
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|