<?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 Update password with ios_user module in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4771802#M965</link>
    <description>&lt;P&gt;I am trying&amp;nbsp;to change Cisco controller password with ansible cisco.ios.ios_user module. My playbook as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;- name: Playbook to change admin user password for CIMC&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; hosts: cimcserver&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; gather_facts: no&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; become: yes&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; become_method: enable&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;tasks:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; - name: CIMC new user details&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cisco.ios.ios_user:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: admin&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; configured_password: &amp;lt;new_password&amp;gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update_password: always&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state: &lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;present&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But I am getting error as below:&lt;BR /&gt;&lt;EM&gt;fatal: [xxxxxxx-cimc]: FAILED! =&amp;gt; {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "unable to elevate privilege to enable mode, at prompt [\nC220-XXXXX# ] with error: failed to elevate privilege to enable mode still at prompt [\nC220-XXXXXX# ]"}&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Need help to solve&amp;nbsp;the issue, thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 09 Feb 2023 07:12:34 GMT</pubDate>
    <dc:creator>palashbarua</dc:creator>
    <dc:date>2023-02-09T07:12:34Z</dc:date>
    <item>
      <title>Update password with ios_user module</title>
      <link>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4771802#M965</link>
      <description>&lt;P&gt;I am trying&amp;nbsp;to change Cisco controller password with ansible cisco.ios.ios_user module. My playbook as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;- name: Playbook to change admin user password for CIMC&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; hosts: cimcserver&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; gather_facts: no&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; become: yes&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; become_method: enable&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;tasks:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; - name: CIMC new user details&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cisco.ios.ios_user:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: admin&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; configured_password: &amp;lt;new_password&amp;gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update_password: always&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state: &lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;present&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But I am getting error as below:&lt;BR /&gt;&lt;EM&gt;fatal: [xxxxxxx-cimc]: FAILED! =&amp;gt; {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "unable to elevate privilege to enable mode, at prompt [\nC220-XXXXX# ] with error: failed to elevate privilege to enable mode still at prompt [\nC220-XXXXXX# ]"}&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Need help to solve&amp;nbsp;the issue, thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Feb 2023 07:12:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4771802#M965</guid>
      <dc:creator>palashbarua</dc:creator>
      <dc:date>2023-02-09T07:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update password with ios_user module</title>
      <link>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4788924#M966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1463542"&gt;@palashbarua&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please try running the playbook in verbose mode&amp;nbsp;"-vvvv" and paste the result here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 19:25:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4788924#M966</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2023-03-07T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update password with ios_user module</title>
      <link>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4790348#M967</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The&lt;/SPAN&gt;&lt;SPAN&gt; issue&lt;/SPAN&gt;&lt;SPAN&gt; here&lt;/SPAN&gt;&lt;SPAN&gt; is&lt;/SPAN&gt;&lt;SPAN&gt; that&lt;/SPAN&gt;&lt;SPAN&gt; your&lt;/SPAN&gt;&lt;SPAN&gt; task&lt;/SPAN&gt;&lt;SPAN&gt; is&lt;/SPAN&gt;&lt;SPAN&gt; trying&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; run&lt;/SPAN&gt;&lt;SPAN&gt; the&lt;/SPAN&gt;&lt;SPAN&gt; commands&lt;/SPAN&gt;&lt;SPAN&gt; in&lt;/SPAN&gt;&lt;SPAN&gt; enable&lt;/SPAN&gt;&lt;SPAN&gt; mode&lt;/SPAN&gt;&lt;SPAN&gt; but&lt;/SPAN&gt;&lt;SPAN&gt; it&lt;/SPAN&gt;&lt;SPAN&gt; is&lt;/SPAN&gt;&lt;SPAN&gt; unable&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; elevate&lt;/SPAN&gt;&lt;SPAN&gt; privileges&lt;/SPAN&gt;&lt;SPAN&gt; to&lt;/SPAN&gt;&lt;SPAN&gt; do&lt;/SPAN&gt;&lt;SPAN&gt; so&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Something like.... might work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Playbook to change admin user password for CIMC
  hosts: cimcserver
  gather_facts: no
  become: yes
  become_method: enable
  vars:
    ansible_become_pass: &amp;lt;enable_password&amp;gt;
 
  tasks:
    - name: CIMC new user details
      cisco.ios.ios_user:
        name: admin
        configured_password: &amp;lt;new_password&amp;gt;
        update_password: always
        state: present&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:13:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/update-password-with-ios-user-module/m-p/4790348#M967</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-03-09T13:13:07Z</dc:date>
    </item>
  </channel>
</rss>

