Class: VagrantPlugins::Ansible_Fixed::Provisioner::Host

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

Constant Summary collapse

@@lock =
Mutex.new

Constants inherited from Base

Base::RANGE_PATTERN

Instance Method Summary collapse

Constructor Details

#initialize(machine, config) ⇒ Host

Returns a new instance of Host.



12
13
14
15
# File 'lib/provisioner/host.rb', line 12

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

Instance Method Details

#provisionObject



17
18
19
20
21
22
23
24
# File 'lib/provisioner/host.rb', line 17

def provision
  # At this stage, the SSH access is guaranteed to be ready
  @ssh_info = @machine.ssh_info

  warn_for_unsupported_platform
  execute_ansible_galaxy_from_host if config.galaxy_role_file
  execute_ansible_playbook_from_host
end