Thanks a lot Vladimir. I really appreciate your help.

With the following combination it works:
ansible_host and connection=ansible.netcommon.network_cli

Previous setting was:
ansible_host and connection=local                     [which actually
worked on ansible version 2.9.11 but my current version is 2.13.7]

-Bikram

On Thu, Jun 1, 2023 at 7:01 PM Vladimir Botka <[email protected]> wrote:

> Try to isolate your problem:
>
> * Create the inventory
>
> shell> cat hosts
> [test]
> NEXUS3172P
>
> [test:vars]
> ansible_host=10.131.88.10
> ansible_network_os=nxos
> username=xxxx
> password=xxxxx
>
> * Create a simple playbook
>
> shell> cat pb.yml
> - hosts: NEXUS3172P
>   gather_facts: false
>   tasks:
>     - nxos_facts:
>         gather_subset: hardware
>
> * Debug the connection (-vvvv)
>
> shell> ansible-playbook -i hosts -vvvv pb.yml
>
>
> --
> Vladimir Botka
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEFfMJT1km6wzyTyWW31EL5EBLCJ4GRXG1P1xw4i1pVJWTPznw%40mail.gmail.com.

Reply via email to