2015-02-10 14:28:00 +00:00
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Ansible
|
|
|
|
module Cap
|
|
|
|
module Guest
|
|
|
|
module SUSE
|
|
|
|
module AnsibleInstall
|
|
|
|
|
2016-06-08 20:59:47 +00:00
|
|
|
def self.ansible_install(machine, install_mode, ansible_version)
|
|
|
|
if install_mode == :pip
|
|
|
|
raise Ansible::Errors::AnsiblePipInstallIsNotSupported
|
|
|
|
else
|
|
|
|
machine.communicate.sudo("zypper --non-interactive --quiet install ansible")
|
|
|
|
end
|
2015-02-10 14:28:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|