Class: Ansible::Ruby::Modules::Vyos_command
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vyos_command
- Defined in:
- lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb
Overview
The command module allows running one or more commands on remote devices running VyOS. This module can also be introspected to validate key parameters before returning successfully. If the conditional statements are not met in the wait period, the task fails. Certain C(show) commands in VyOS produce many lines of output and use a custom pager that can cause this module to hang. If the value of the environment variable C(ANSIBLE_VYOS_TERMINAL_LENGTH) is not set, the default number of 10000 is used.
Instance Method Summary collapse
-
#commands ⇒ Array<String>, String
The ordered set of commands to execute on the remote device running VyOS.
-
#interval ⇒ Integer?
Configures the interval in seconds to wait between I(retries) of the command.
-
#match ⇒ :any, ...
The I(match) argument is used in conjunction with the I(wait_for) argument to specify the match policy.
-
#retries ⇒ Integer?
Specifies the number of retries a command should be tried before it is considered failed.
-
#wait_for ⇒ Array<String>, ...
Specifies what to evaluate from the output of the command and what conditionals to apply.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#commands ⇒ Array<String>, String
13 |
# File 'lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb', line 13 attribute :commands |
#interval ⇒ Integer?
29 |
# File 'lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb', line 29 attribute :interval |
#match ⇒ :any, ...
21 |
# File 'lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb', line 21 attribute :match |
#retries ⇒ Integer?
25 |
# File 'lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb', line 25 attribute :retries |
#wait_for ⇒ Array<String>, ...
17 |
# File 'lib/ansible/ruby/modules/generated/network/vyos/vyos_command.rb', line 17 attribute :wait_for |