Are you able to connect to Cisco Switch from Ansible server via ssh ? The
error says 'Connection Error'.

On Tue, Jul 7, 2020 at 1:03 PM Sandy Hung <sandy.h...@abagile.com> wrote:

> I connect cisco switch run playbook show error msg
> please help thanks.
> fatal: [tpesw-01]: FAILED! => {
>     "ansible_facts": {},
>     "changed": false,
>     "failed_modules": {
>         "ios_facts": {
>             "exception": "WARNING: The below traceback may *not* be
> related to the actual failure.\n  File
> \"/tmp/ansible_ios_facts_payload_8veYSP/ansible_ios_facts_payload.zip/ansible/module_utils/network/common/network.py\",
> line 229, in get_capabilities\n    capabilities =
> Connection(module._socket_path).get_capabilities()\n  File
> \"/tmp/ansible_ios_facts_payload_8veYSP/ansible_ios_facts_payload.zip/ansible/module_utils/connection.py\",
> line 185, in __rpc__\n    raise ConnectionError(to_text(msg,
> errors='surrogate_then_replace'), code=code)\n",
>             "failed": true,
>             "invocation": {
>                 "module_args": {
>                     "auth_pass": null,
>                     "authorize": null,
>                     "gather_network_resources": null,
>                     "gather_subset": [
>                         "all"
>                     ],
>                     "host": null,
>                     "password": null,
>                     "port": null,
>                     "provider": null,
>                     "ssh_keyfile": null,
>                     "timeout": null,
>                     "username": null
>                 }
>             },
>             "msg": "[Errno -2] Name or service not known"
>         }
>     },
>     "msg": "The following modules failed to execute: ios_facts\n"
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7bf542cc-2a7a-45ba-b94d-9332327f7e6bn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7bf542cc-2a7a-45ba-b94d-9332327f7e6bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG-N3P4jR8-OoF80TbjoYo42F7BgFUaZ7cTCvRLevRXudjiT2Q%40mail.gmail.com.

Reply via email to