#na_ontap_user playbook issue.

1 messages · Page 1 of 1 (latest)

strange kayak
#

Hello. Module returns error:
Cannot modify attributes for user "diag". The only operations supported are "lock," "unlock," and "password".', 'code': '5832712'

    netapp.ontap.na_ontap_user:
    state: present
    name: "diag"
    application_dicts:
      - application: console
        authentication_methods: password
    role_name: "admin"
    vserver: "{{ inventory_hostname }}"
    set_password: "{{ diag_pass }}"
    lock_user: true
    username: "{{ hardening_user }}"
    password: "{{ hardening_pass }}"
    hostname: "{{ cluster_ip }}"
    https: false
    validate_certs: false

Ansible version = 2.10.14
netapp Lib version = 22.9.0
ONTAP version - 9.15.1P3

distant bane
#

did you try doing only one of the two changes that you want to do? i.e. only lock_user: true or only set_password: {{ diag_pass }} instead of doing both at once?

strange kayak
#

Nope. It was working for last years. It may be related to new ontap version.
I'll try.

tropic spruce
strange kayak
#

Playbook works for 9.8P21 and doesn't work on 9.15.1P2.

In case separate changes to two different tasks:

  1. set_password - 9.8 works , 9.15 fails with the same error
  2. lock_user: true - 9.8 works, 9.15 fails with the same error

{"changed": false, "msg": "Error while modifying user details: {'message': 'Cannot modify attributes for user "diag". The only operations supported are "lock," "unlock," and "password".', 'code': '5832712'}"}