Ansible differences between ios command and cli command
In an earlier post I
covered the differences between ios_config and cli_config. However I did not cover what the
difference was between ios_command and cli_command. Most of the items covered there remain the
same. So this will be a post that mostly gets straight to it and sees what the difference is.
A reminder that I am also putting playbooks used here out on Github. You can find this at: https://github.com/jvanderaa/ansible-using_ios
Differences #
First, for the cli_commands module, you must be using a connection method of network_cli. You
should not use connection: local for this module. Note that the cli_command can also be used
with multiple device types, including multiple vendors. Take a look at the cli_command
documentation page that there is a link at the bottom of the post.