Class: Ansible::Ruby::Modules::Add_host
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Add_host
- 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
-
#groups ⇒ Array<String>, ...
The groups to add the hostname to, comma separated.
-
#name ⇒ String
The hostname/ip of the host to add to the inventory, can include a colon and a port number.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#groups ⇒ Array<String>, ...
Returns The groups to add the hostname to, comma separated.
17 |
# File 'lib/ansible/ruby/modules/generated/inventory/add_host.rb', line 17 attribute :groups |
#name ⇒ String
Returns The hostname/ip of the host to add to the inventory, can include a colon and a port number.
13 |
# File 'lib/ansible/ruby/modules/generated/inventory/add_host.rb', line 13 attribute :name |