I am starting out at ansible with a basic playbook to learn ansible I am 
getting the error message below I know the user and creds are correct I 
have logged into that switch from
ansible server can someone please let me know what I am missing?



#error message

TASK [Gathering Facts] 
************************************************************************************************************************************************

fatal: [vegeta01_temp]: UNREACHABLE! => {"changed": false, "msg": "Failed 
to connect to the host via ssh: 
\n****************************************************************************Permission
 
denied (publickey,password,keyboard-interactive).", "unreachable": true}


---

 

- name: nxos_facts module

  hosts: vegeta_core

  vars:

    ssh:

      host: “{{ansible_host}”

      username: “{{vegeta}”

      password: “{{abc123}”

 

    nxapi:

      host: "{{ ansible_host }}"

      username: "{{ vegeta }}”

      password: "{{ abc123 }}"

      transport: nxapi

      use_ssl: no

      validate_certs: no

      port: 80 

 

 

  tasks:

    - name: nxos_facts ssh

      nxos_facts:

        provider: "{{ssh}}"

 

    - name: nxos_facts nxapi

      nxos_facts:

        provider: "{{ nxapi }}"   

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f952b128-7d33-4167-b02a-db0b143665c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to