Class: VagrantPlugins::Ansible_Fixed::Provisioner::Guest

Inherits:
Base
  • Object
show all
Defined in:
lib/provisioner/guest.rb

Constant Summary

Constants inherited from Base

Base::RANGE_PATTERN

Instance Method Summary collapse

Constructor Details

#initialize(machine, config) ⇒ Guest

Returns a new instance of Guest.



10
11
12
13
# File 'lib/provisioner/guest.rb', line 10

def initialize(machine, config)
  super
  @logger = Log4r::Logger.new("vagrant::provisioners::ansible_guest")
end

Instance Method Details

#provisionObject



15
16
17
18
19
# File 'lib/provisioner/guest.rb', line 15

def provision
  check_and_install_ansible
  execute_ansible_galaxy_on_guest if config.galaxy_role_file
  execute_ansible_playbook_on_guest
end