Class: Ansible::Ruby::Modules::Iosxr_command
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Iosxr_command
- Defined in:
- lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb
Instance Method Summary collapse
-
#commands ⇒ Array<String>, String
List of commands to send to the remote ios device over the configured provider.
-
#interval ⇒ Integer?
Configures the interval in seconds to wait between retries of the command.
-
#retries ⇒ Integer?
Specifies the number of retries a command should by tried before it is considered failed.
-
#waitfor ⇒ Array<String>, ...
List of conditions to evaluate against the output of the command.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#commands ⇒ Array<String>, String
Returns List of commands to send to the remote ios device over the configured provider. The resulting output from the command is returned. If the I(waitfor) argument is provided, the module is not returned until the condition is satisfied or the number of retires as expired.
10 |
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb', line 10 attribute :commands |
#interval ⇒ Integer?
Returns Configures the interval in seconds to wait between retries of the command. If the command does not pass the specified conditions, the interval indicates how long to wait before trying the command again.
22 |
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb', line 22 attribute :interval |
#retries ⇒ Integer?
Returns Specifies the number of retries a command should by tried before it is considered failed. The command is run on the target device every retry and evaluated against the waitfor conditions.
18 |
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb', line 18 attribute :retries |
#waitfor ⇒ Array<String>, ...
Returns List of conditions to evaluate against the output of the command. The task will wait for a each condition to be true before moving forward. If the conditional is not true within the configured number of retries, the task fails. See examples.
14 |
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb', line 14 attribute :waitfor |