dellemc.os10.os10_command – Run commands on devices running Dell EMC SmartFabric OS10
This plugin is part of the dellemc.os10 collection (version 1.1.1).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install dellemc.os10.
To use it in a playbook, specify:
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.
This module has a corresponding action plugin.
For more information on using Ansible to manage Dell EMC Network devices see https://www.ansible.com/ansible-dell-networking.
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 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 contains OS10 - result contains Ethernet
Common return values are documented here, the following are the fields unique to this module: