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

24 lines
542 B
Ruby
Raw Normal View History

require_relative "../../../errors"
module VagrantPlugins
module Ansible
module Cap
module Guest
module FreeBSD
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 "yes | pkg install ansible"
end
end
end
end
end
end
end
end