dellemc.os6.os6_command – Run commands on devices running Dell EMC OS6¶
Note
This plugin is part of the dellemc.os6 collection (version 1.0.6).
To install it use: ansible-galaxy collection install dellemc.os6
.
To use it in a playbook, specify: dellemc.os6.os6_command
.
Synopsis¶
Sends arbitrary commands to a OS6 device and returns the results read from the device. This module includes an argument that will cause the module to wait for a specific condition before returning or timing out if the condition is not met.
This module does not support running commands in configuration mode. Please use dellemc_os6_os6_config to configure OS6 devices.
Note
This module has a corresponding action plugin.
Parameters¶
Notes¶
Note
For more information on using Ansible to manage Dell EMC Network devices see https://www.ansible.com/ansible-dell-networking.
Examples¶
tasks:
- name: run show version on remote devices
os6_command:
commands: show version
- name: run show version and check to see if output contains Dell
os6_command:
commands: show version
wait_for: result[0] contains Dell
- name: run multiple commands on remote nodes
os6_command:
commands:
- show version
- show interfaces
- name: run multiple commands and evaluate the output
os6_command:
commands:
- show version
- show interfaces
wait_for:
- result[0] contains Dell
- result[1] contains Access
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Abirami N (@abirami-n)