"Fossies" - the Fresh Open Source Software Archive

Member "vagrant-2.2.14/plugins/provisioners/ansible/cap/guest/freebsd/ansible_install.rb" (20 Nov 2020, 567 Bytes) of package /linux/misc/vagrant-2.2.14.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 require_relative "../../../errors"
    2 
    3 module VagrantPlugins
    4   module Ansible
    5     module Cap
    6       module Guest
    7         module FreeBSD
    8           module AnsibleInstall
    9 
   10             def self.ansible_install(machine, install_mode, ansible_version, pip_args, pip_install_cmd = "")
   11               if install_mode != :default
   12                 raise Ansible::Errors::AnsiblePipInstallIsNotSupported
   13               else
   14                 machine.communicate.sudo "pkg install -qy py36-ansible"
   15               end
   16             end
   17 
   18           end
   19         end
   20       end
   21     end
   22   end
   23 end