Class: Ansible::Ruby::Modules::Telnet
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Telnet
- Defined in:
- lib/ansible/ruby/modules/generated/commands/telnet.rb
Overview
Executes a low-down and dirty telnet command, not going through the module subsystem. This is mostly to be used for enabling ssh on devices that only have telnet enabled by default.
Instance Method Summary collapse
-
#command ⇒ Array<String>, String
List of commands to be executed in the telnet session.
-
#host ⇒ String?
The host/target on which to execute the command.
-
#login_prompt ⇒ String?
Login or username prompt to expect.
-
#password ⇒ String?
The password for login.
-
#password_prompt ⇒ String?
Login or username prompt to expect.
-
#pause ⇒ Integer?
Seconds to pause between each command issued.
-
#port ⇒ Integer?
Remote port to use.
-
#prompts ⇒ String?
List of prompts expected before sending next command.
-
#send_newline ⇒ Symbol?
Sends a newline character upon successful connection to start the terminal session.
-
#timeout ⇒ Integer?
Timeout for remote operations.
-
#user ⇒ String?
The user for login.
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
#command ⇒ Array<String>, String
Returns List of commands to be executed in the telnet session.
13 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 13 attribute :command |
#host ⇒ String?
Returns The host/target on which to execute the command.
17 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 17 attribute :host |
#login_prompt ⇒ String?
Returns Login or username prompt to expect.
41 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 41 attribute :login_prompt |
#password ⇒ String?
Returns The password for login.
25 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 25 attribute :password |
#password_prompt ⇒ String?
Returns Login or username prompt to expect.
45 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 45 attribute :password_prompt |
#pause ⇒ Integer?
Returns Seconds to pause between each command issued.
49 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 49 attribute :pause |
#port ⇒ Integer?
Returns Remote port to use.
29 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 29 attribute :port |
#prompts ⇒ String?
Returns List of prompts expected before sending next command.
37 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 37 attribute :prompts |
#send_newline ⇒ Symbol?
Returns Sends a newline character upon successful connection to start the terminal session.
53 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 53 attribute :send_newline |
#timeout ⇒ Integer?
Returns timeout for remote operations.
33 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 33 attribute :timeout |
#user ⇒ String?
Returns The user for login.
21 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 21 attribute :user |