#Error in updating admin user password from netapp ansible module "netapp.ontap.na_ontap_user"

1 messages · Page 1 of 1 (latest)

vestal flower
#

When I tried below code for only ssh application, it works fine but when I try same for admin user which has all these applications (ssh,ontapi,http,console,service-processor) I receive below error message:

failed: [vmu81181.pcs.nl.eu.abnamro.com] (item=nas82.nl.eu.abnamro.com) => {"ansible_loop_var": "item", "changed": false, "item": "nas82.nl.eu.abnamro.com", "module_stderr": "Shared connection to vmu81181.pcs.nl.eu.abnamro.com closed.\r\n", "module_stdout": "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n InsecureRequestWarning)\r\n/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n InsecureRequestWarning)\r\n/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\r\n , "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Code used:

  • name: Update password on ONTAP cluster
    netapp.ontap.na_ontap_user:
    state: present
    name: "{{ user_name }}"
    applications: ssh
    authentication_method: password
    set_password: "{{ pass_str }}"

    lock_user: True

    vserver: "{{ item.split('.')[0] }}"
    hostname: "{{ item}}"
    username: "{{ username }}"
    password: "{{ password }}"
    use_rest: always

    https: true

    validate_certs: "false"
    with_items: "{{ host_names|split(',') }}"
    no_log: True
undone path
#

Was that the full error message?. From the error message it sound like we lost connect to REST API.

module_stderr": "Shared connection to vmu81181.pcs.nl.eu.abnamro.com closed.\