It seems lack of some parameters, however, there’s no more information about how to put the parameters in the command.
We want to excute “‘show version’” and “‘show running-config’” , can you help me, thanks!
You need to pass the required arguments to the module in order for it to run properly. Below is an example of running Ansible to collect the output from show running-config.
ansible -m nxos_command -a “host=nxos01 username=admin password=admin commands=‘show running-config’” localhost --connection local
Is this issue resolved? I am getting connection timed out error. Are there any extra configuration needed on nxos or ansible? I tested NX-API Developer Sandbox and able to receive response in json.