Ansible 2.2 ios modules are failing with message "Failed to connect to the host via ssh."

I’m not able to run ios_command module in Ansible 2.1 for executing commands on my cisco routers.

I’ve written a playbook for testing ios_command module on cisco routers.

Following is the playbook I wrote

`

Add connection: local to your playbook