This module helps its users to send commands to a Cisco device running IOS, either a router, a switch, an access-point, or firewall. This module also has the option of making the task wait for a condition before returning with a timeout. The following is an example of a playbook showing command execution on a Cisco device:
- name: check on the switch network interfaces status
ios_command:
commands: show interfaces brief
wait_for: result[0] contains Loopback0