<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: authentication error between Ansible and Nexus 9k in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499386#M2354</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What connection mode do you use in your playbook?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 09:54:45 GMT</pubDate>
    <dc:creator>Sergey Lisitsin</dc:creator>
    <dc:date>2021-11-08T09:54:45Z</dc:date>
    <item>
      <title>authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498936#M2349</link>
      <description>&lt;P&gt;Hi all;&lt;/P&gt;&lt;P&gt;I posted my question on a community I found for automation, But now I came across this dedicated DevNet automation. I Don't know maybe here is the right place to ask my question, but I'm not going to copy/paste the same stuff here. So I appreciate if anyone take a look at my question posted in&amp;nbsp;&lt;A href="https://community.cisco.com/t5/intelligent-automation/issue-in-connecting-between-ansible-and-nexus-9k/m-p/4498933#M7740" target="_blank"&gt;https://community.cisco.com/t5/intelligent-automation/issue-in-connecting-between-ansible-and-nexus-9k/m-p/4498933#M7740&lt;/A&gt;&amp;nbsp;address.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 11:25:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498936#M2349</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-06T11:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498939#M2350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/848681"&gt;@TCPuniverse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is TACACS configured?&lt;/P&gt;&lt;P&gt;Try enabling &lt;STRONG&gt;feature privilege&lt;/STRONG&gt;&amp;nbsp;(see below) and then re-run your playbook.&lt;/P&gt;&lt;P&gt;Please report back if can..I've not run into feature privilege either!&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/security/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide_chapter_0101.html" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Configuring Privilege Level Support for Authorization on TACACS+ Servers&lt;/H3&gt;&lt;P class=""&gt;You can configure privilege level support for authorization on TACACS+ servers.&lt;/P&gt;&lt;P class=""&gt;Unlike Cisco IOS devices, which use privilege levels to determine authorization,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Cisco NX-OS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;devices use role-based access control (RBAC). To enable both types of devices to be administered by the same TACACS+ servers, you can map the privilege levels configured on TACACS+ servers to user roles configured on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Cisco NX-OS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;devices.&lt;/P&gt;&lt;P class=""&gt;When a user authenticates with a TACACS+ server, the privilege level is obtained and used to form a local user role name of the format “priv-n,” where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;n&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the privilege level. The user assumes the permissions of this local role. Sixteen privilege levels, which map directly to corresponding user roles, are available. The following table shows the user role permissions that correspond to each privilege level.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;Privilege Level User Role Permissions &lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;network-admin permissions&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13 - 1&lt;/TD&gt;&lt;TD&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Standalone role permissions, if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;feature privilege&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;command is disabled.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Same permissions as privilege level 0 with cumulative privileges for roles, if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;feature privilege&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;command is enabled.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Permission to execute&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;show&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;commands and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;exec&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;commands (such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ping&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;trace&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ssh&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClaudiadeLuna_1-1636199032395.gif" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136703i6050D1E52B387CA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClaudiadeLuna_1-1636199032395.gif" alt="ClaudiadeLuna_1-1636199032395.gif" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;STRONG&gt;Important&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;HR /&gt;Only the network administrator can escalate privileges to the root. As per the new security measures, a network operator (priv-1&amp;nbsp;user) is not allowed to collect show tech. Therefore, the enable command does not help to escalate the privileges.&lt;HR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClaudiadeLuna_2-1636199032395.gif" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/136704i4F287D2C021F04DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClaudiadeLuna_2-1636199032395.gif" alt="ClaudiadeLuna_2-1636199032395.gif" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;HR /&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;When the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;feature privilege&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;command is enabled, privilege roles inherit the permissions of lower level privilege roles.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;You must also configure the privilege level for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Cisco NX-OS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;device on the Cisco Secure Access Control Server (ACS).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;H3&gt;SUMMARY STEPS&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;configure terminal&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;[&lt;SPAN class=""&gt;no&lt;/SPAN&gt;]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;feature privilege&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 06 Nov 2021 11:47:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498939#M2350</guid>
      <dc:creator>Claudia de Luna</dc:creator>
      <dc:date>2021-11-06T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498944#M2351</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;I ran these command:&lt;/P&gt;&lt;PRE&gt;switch2(config)# feature privilege
switch2(config)# enable secret 0 pass123! priv-lvl 15
switch2(config)# username sekom role priv-15
----
switch2(config)# sh privilege
User name: sekom
Current privilege level: 15
Feature privilege: Enabled&lt;/PRE&gt;&lt;P&gt;And ran playbook, first without privilege scalation:&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# ansible-playbook tp-collecting-info-nxos.yml --limit nxos -u sekom -k&lt;/PRE&gt;&lt;P&gt;result:&lt;/P&gt;&lt;PRE&gt;fatal: [10.106.6.216]: FAILED! =&amp;gt; {"changed": false, "msg": "failed to elevate privilege to enable mode, at prompt [b'\\rswitch2# '] with error: unable to check privilege level [User name: sekom\nCurrent privilege level: 15\nFeature privilege: Enabled]"}&lt;/PRE&gt;&lt;P&gt;And with privilege scalation:&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# ansible-playbook tp-collecting-info-nxos.yml --limit nxos -u sekom -Kk&lt;/PRE&gt;&lt;P&gt;with the same result as above. I have not enabled TACACS:&lt;/P&gt;&lt;PRE&gt;switch2(config)# sh run | inc feature
feature privilege
feature telnet
feature nxapi
feature vrrp
feature interface-vlan
feature hsrp
feature lacp
feature vpc
feature lldp&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 12:05:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498944#M2351</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-06T12:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498950#M2352</link>
      <description>&lt;P&gt;Here is what I normally use in my playbooks;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;- hosts: some group
  connection: local
  become: yes
  gather_facts: False&lt;/PRE&gt;&lt;P&gt;you may gave to use become: yes for some of the show commands or actions you want to execute in your playbook.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you are concerned about that try your playbook against a simulator or one of the DevNet Sandbox Nexus Devices.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 12:31:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498950#M2352</guid>
      <dc:creator>Claudia de Luna</dc:creator>
      <dc:date>2021-11-06T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498963#M2353</link>
      <description>&lt;P&gt;I changed "&lt;STRONG&gt;become&lt;/STRONG&gt;" to "&lt;STRONG&gt;yes&lt;/STRONG&gt;" but got the same error. Actually when I enter credentials (both SSH pass and then enable pass), I got&amp;nbsp;"Failed to authenticate: Authentication failed." but when credentials were correct, I got the "failed to elevate privilege to enable mode". I think there should be something about NXOS. My NXOS version on&amp;nbsp;C93128TX is "&lt;STRONG&gt;7.0(3)I1(1a)&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# ansible-playbook tp-collecting-info-nxos.yml --limit nxos -u sekom -Kk
SSH password:
BECOME password[defaults to SSH password]:

PLAY [print nxos facts] ************************************************************************************************************

TASK [gathering facts] *************************************************************************************************************
fatal: [10.106.6.216]: FAILED! =&amp;gt; {"changed": false, "msg": "failed to elevate privilege to enable mode, at prompt [b'\\rswitch2# '] with error: unable to check privilege level [User name: sekom\nCurrent privilege level: 15\nFeature privilege: Enabled]"}
fatal: [10.106.6.219]: FAILED! =&amp;gt; {"changed": false, "msg": "Failed to authenticate: Authentication failed."}

PLAY RECAP *************************************************************************************************************************
10.106.6.216               : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
10.106.6.219               : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Nov 2021 14:29:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4498963#M2353</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-06T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499386#M2354</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What connection mode do you use in your playbook?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 09:54:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499386#M2354</guid>
      <dc:creator>Sergey Lisitsin</dc:creator>
      <dc:date>2021-11-08T09:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499451#M2355</link>
      <description>&lt;P&gt;I'm using "network_cli" as connection method.&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# cat group_vars/nxos/vars.yml
---
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: cisco.nxos.nxos
ansible_become: no
ansible_command_timeout: 60&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:18:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499451#M2355</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-08T12:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499472#M2356</link>
      <description>&lt;P&gt;I would try changing that to "ssh"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:39:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4499472#M2356</guid>
      <dc:creator>Sergey Lisitsin</dc:creator>
      <dc:date>2021-11-08T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4502453#M2357</link>
      <description>&lt;P&gt;It didn't work either.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 21:22:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4502453#M2357</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-13T21:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4504845#M2358</link>
      <description>&lt;P&gt;I changed connection method to NX-API and enabled the NX-API on nexus switch with "&lt;STRONG&gt;feature nxapi&lt;/STRONG&gt;" command and also tried to run the playbook, both with privilege escalation and without, but again it gave the same error in both cases:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ansible.module_utils.connection.ConnectionError: failed to elevate privilege to enable mode, at prompt [b'\\rswitch2# '] with error: unable to check privilege level [User name: admin
Current privilege level: 15
Feature privilege: Enabled&lt;/PRE&gt;&lt;P&gt;Is this a bug or I missed something important? because this is not normal that I get same error over and over again even after changing config multiple times?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my ansible vars:&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# cat group_vars/nxos/vars.yml
---
ansible_connection: ansible.netcommon.httpapi
ansible_network_os: cisco.nxos.nxos&lt;/PRE&gt;&lt;P&gt;and my playbook:&lt;/P&gt;&lt;PRE&gt;[root@tcentos ansible-dir]# cat tp-cbackup-nxos.yml
---
- name: print nxos facts
  hosts: nxos
  gather_facts: no
  tasks:
    - name: backup config
      cisco.nxos.nxos_config:
        backup: yes
      register: nxos_backup
    - name: printing facts
      debug:
        var: nxos_backup&lt;/PRE&gt;&lt;P&gt;And my Nexus switch info:&lt;/P&gt;&lt;P&gt;Software&lt;BR /&gt;&amp;nbsp;BIOS: version 07.66&lt;BR /&gt;NXOS: version 7.0(3)I7(9)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hardware&lt;BR /&gt;cisco Nexus9000 C93128TX Chassis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nexus config:&lt;/P&gt;&lt;PRE&gt;feature privilege
feature telnet
feature nxapi
feature vpc
!
username admin password 5 $1$XMiZ  role network-admin
username admin role priv-15
enable secret 5 $1$4ef0dfcc9
nxapi http port 80

&lt;/PRE&gt;&lt;P&gt;And finally here are some outputs showing AAA config:&lt;/P&gt;&lt;PRE&gt;switch2(config)# sh aaa authentication
         default: local
         console: local
---
switch2(config)# sh aaa authorization
         pki-ssh-cert: local
         pki-ssh-pubkey: local
---
switch2(config)# sh privilege
User name: admin
Current privilege level: 15
Feature privilege: Enabled

&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Nov 2021 10:53:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4504845#M2358</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-18T10:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4507684#M2359</link>
      <description>&lt;P&gt;Hi friends. none of the suggestions given here worked for me. I even upgraded NXOS to&amp;nbsp;version 9.3(8) which is Cisco's recommended version, but got the same error again, again and again! I think there should be logical answer to this error. haven't you ever faced with such error? I think I'm missing very important point here, because with all of things I did, I should see any progress and difference, but I'm at the first step after all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:35:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/4507684#M2359</guid>
      <dc:creator>TCPuniverse</dc:creator>
      <dc:date>2021-11-24T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error between Ansible and Nexus 9k</title>
      <link>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/5288364#M2870</link>
      <description>&lt;P&gt;I am having problem to run&amp;nbsp; ansible playbook&amp;nbsp; ( gathering facts) using TACACS credential using nexus 9k&amp;nbsp; I have the below message if anybody has any suggestion how to sole ve this problem will be apprecciate&lt;/P&gt;
&lt;P&gt;fatal: [pok-kd-mgmt-1b]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"module_stderr": "Failed to authenticate: Authentication failed.",&lt;BR /&gt;"module_stdout": "",&lt;BR /&gt;"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Failed to authenticate: Authentication failed.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:21:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/authentication-error-between-ansible-and-nexus-9k/m-p/5288364#M2870</guid>
      <dc:creator>wcornejo</dc:creator>
      <dc:date>2025-05-06T21:21:34Z</dc:date>
    </item>
  </channel>
</rss>

