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

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

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

Constructor Details

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

Instance Method Details

#groupsString?

Returns The groups to add the hostname to, comma separated.

Returns:

  • (String, nil)

    The groups to add the hostname to, comma separated.



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

attribute :groups

#nameString

Returns The hostname/ip of the host to add to the inventory, can include a colon and a port number.

Returns:

  • (String)

    The hostname/ip of the host to add to the inventory, can include a colon and a port number.



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

attribute :name