dellemc.os6.os6_command – Run commands on devices running Dell EMC OS6
This plugin is part of the dellemc.os6 collection (version 1.0.7).
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.os6.
To use it in a playbook, specify:
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 M(dellemc_os6_os6_config) to configure OS6 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 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 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 contains Dell - result contains Access
Common return values are documented here, the following are the fields unique to this module: