dellemc.os10.os10_command – Run commands on devices running Dell EMC SmartFabric OS10¶
Note
This plugin is part of the dellemc.os10 collection (version 1.1.1).
To install it use: ansible-galaxy collection install dellemc.os10
.
To use it in a playbook, specify: dellemc.os10.os10_command
.
Synopsis¶
Sends arbitrary commands to a OS10 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.os10.os10_config to configure OS10 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
os10_command:
commands: show version
- name: run show version and check to see if output contains OS10
os10_command:
commands: show version
wait_for: result[0] contains OS10
- name: run multiple commands on remote nodes
os10_command:
commands:
- show version
- show interface
- name: run multiple commands and evaluate the output
os10_command:
commands:
- show version
- show interface
wait_for:
- result[0] contains OS10
- result[1] contains Ethernet
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Senthil Kumar Ganesan (@skg-net)