community.network.aireos_command – Run commands on remote devices running Cisco WLC¶
Note
This plugin is part of the community.network collection (version 2.1.1).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.aireos_command
.
Synopsis¶
Sends arbitrary commands to an aireos node 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.
Commands run in configuration mode with this module are not idempotent. Please use community.network.aireos_config to configure WLC devices.
Parameters¶
Examples¶
tasks:
- name: Run show sysinfo on remote devices
community.network.aireos_command:
commands: show sysinfo
- name: Run show sysinfo and check to see if output contains Cisco Controller
community.network.aireos_command:
commands: show sysinfo
wait_for: result[0] contains 'Cisco Controller'
- name: Run multiple commands on remote nodes
community.network.aireos_command:
commands:
- show sysinfo
- show interface summary
- name: Run multiple commands and evaluate the output
community.network.aireos_command:
commands:
- show sysinfo
- show interface summary
wait_for:
- result[0] contains Cisco Controller
- result[1] contains Loopback0
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
James Mighion (@jmighion)