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: alwayshttps: true
validate_certs: "false"
with_items: "{{ host_names|split(',') }}"
no_log: True
Customizing Pool Behavior: The PoolManager class automatically handles creating ConnectionPool instances for each host as needed. By default, it will keep a maximum of 10 ConnectionPool instances. ...