Class: Ansible::Ruby::Modules::Telnet

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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

#commandArray<String>, String

Returns List of commands to be executed in the telnet session.

Returns:

  • (Array<String>, String)

    List of commands to be executed in the telnet session.



13
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 13

attribute :command

#hostString?

Returns The host/target on which to execute the command.

Returns:

  • (String, nil)

    The host/target on which to execute the command



17
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 17

attribute :host

#login_promptString?

Returns Login or username prompt to expect.

Returns:

  • (String, nil)

    Login or username prompt to expect



41
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 41

attribute :login_prompt

#passwordString?

Returns The password for login.

Returns:

  • (String, nil)

    The password for login



25
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 25

attribute :password

#password_promptString?

Returns Login or username prompt to expect.

Returns:

  • (String, nil)

    Login or username prompt to expect



45
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 45

attribute :password_prompt

#pauseInteger?

Returns Seconds to pause between each command issued.

Returns:

  • (Integer, nil)

    Seconds to pause between each command issued



49
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 49

attribute :pause

#portInteger?

Returns Remote port to use.

Returns:

  • (Integer, nil)

    Remote port to use



29
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 29

attribute :port

#promptsString?

Returns List of prompts expected before sending next command.

Returns:

  • (String, nil)

    List of prompts expected before sending next command



37
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 37

attribute :prompts

#send_newlineSymbol?

Returns Sends a newline character upon successful connection to start the terminal session.

Returns:

  • (Symbol, nil)

    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

#timeoutInteger?

Returns timeout for remote operations.

Returns:

  • (Integer, nil)

    timeout for remote operations



33
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 33

attribute :timeout

#userString?

Returns The user for login.

Returns:

  • (String, nil)

    The user for login



21
# File 'lib/ansible/ruby/modules/generated/commands/telnet.rb', line 21

attribute :user