---
- hosts: router2
tasks:
- ios_command:
username: cisco
password: cisco
# host: router2.3node.example.com
commands:
- show version
register: output
- debug: msg="Hello World! {{ output.stdout }}"
But the playbook fails with the following message :
fatal: [router2.3node.example.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
and value unreachable=1
Also find the output while run on debug mode