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