Class: Ansible::Ruby::Modules::Add_host

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/inventory/add_host.rb

Overview

Use variables to create new hosts and groups in inventory for use in later plays of the same playbook. Takes variables so you can define the new hosts more fully. This module is also supported for Windows targets.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#groupsArray<String>, ...



17
# File 'lib/ansible/ruby/modules/generated/inventory/add_host.rb', line 17

attribute :groups

#nameString



13
# File 'lib/ansible/ruby/modules/generated/inventory/add_host.rb', line 13

attribute :name