community.network.aireos_command – Run commands on remote devices running Cisco WLC¶
This plugin is part of the community.network collection.
To install it use:
ansible-galaxy collection install community.network.
To use it in a playbook, specify:
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.
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 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 contains Cisco Controller - result contains Loopback0
Common return values are documented here, the following are the fields unique to this module: