vagrant/plugins/provisioners/ansible/cap/guest/suse/ansible_install.rb

23 lines
514 B
Ruby
Raw Normal View History

module VagrantPlugins
module Ansible
module Cap
module Guest
module SUSE
module AnsibleInstall
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
end
end
end
end
end
end
end