Class: VagrantPlugins::Ansible_Fixed::Provisioner::Host
- Defined in:
- lib/provisioner/host.rb
Constant Summary collapse
- @@lock =
Mutex.new
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(machine, config) ⇒ Host
constructor
A new instance of Host.
- #provision ⇒ Object
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
#provision ⇒ Object
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 |