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
13 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 13 attribute :command |
#host ⇒ String?
17 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 17 attribute :host |
#login_prompt ⇒ String?
41 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 41 attribute :login_prompt |
#password ⇒ String?
25 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 25 attribute :password |
#password_prompt ⇒ String?
45 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 45 attribute :password_prompt |
#pause ⇒ Integer?
49 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 49 attribute :pause |
#port ⇒ Integer?
29 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 29 attribute :port |
#prompts ⇒ String?
37 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 37 attribute :prompts |
#send_newline ⇒ Symbol?
53 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 53 attribute :send_newline |
#timeout ⇒ Integer?
33 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 33 attribute :timeout |
#user ⇒ String?
21 |
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 21 attribute :user |