#Getting error while resetting a user password using module

1 messages · Page 1 of 1 (latest)

rustic shell
#

I am using na_ontap_user module to change password of user but getting below error:
"ansible_loop_var": "item",
"changed": false,
"item": "***",
"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:852: 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:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.

Module 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 }}"
    vserver: "{{ item.split('.')[0] }}"
    hostname: "{{ item}}"
    username: "{{ username }}"
    password: "{{ password }}"
    use_rest: always
    https: true
    validate_certs: false
    with_items: "{{ host_names|split(',') }}"
feral wolf
#

You can try changing your "false" to "no" for the validate_certs. That's what I have in all my tasks.

vars: clusterlogin: &clusterlogin hostname: "{{ cluster_mgmt_ip }}" username: "{{ cluster_mgmt_username }}" password: "{{ cluster_mgmt_password }}" https: true validate_certs: no stdout_callback: yaml