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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20230602010112.5e8a9bf3%40gmail.com.

Attachment: pgp5mEigoMWbc.pgp
Description: OpenPGP digital signature

Reply via email to