Missing required arguments: command_directory_name

I’m trying to create a user and role using REST_API, and I’m running 9.15.x and keep receiving the following error when running the playbook: localhost]: FAILED! => {“changed”: false, “msg”: “missing required arguments: command_directory_name”} Why am I receiving this error if I’m only trying to apply REST and the error above is only valid for ZAPI? I’m only providing a snippet of the playbook since I’m sure you don’t want the entire playbook posted here.

I have shortened the playbook as much as possible, and I still receive that error even if I only apply “/api” to just give the user all REST permissions, but still the same error.
I’m using netapp.ontap version 22.13.0.

I’m under the impression, Even with valid REST path values, the na_ontap_user_role module from the netapp.ontap collection:

Still defaults to ZAPI transport internally unless the module detects REST support at both the module level and the ONTAP endpoint — which is flaky.

This seems like a bug to me but maybe it’s fixed in a newer module?

The paths all look fine to me:

 privileges:
          - path: /api/storage/volumes
            access: all
          - path: /api/storage/luns
            access: all
          - path: /api/protocols/nfs/export-policies
        https: true
        validate_certs: false
        use_rest: always

I was trying to use the following:

/api/storage/volumes
/api/storage/luns
/api/protocols/nfs/export-policies
/api/protocols/cifs/shares
/api/network/ip/interfaces
/api/svm/svms
/api/storage/aggregates
/api/cluster
/api/storage/qtrees
/api/storage/quota/rules
/api/security/accounts
/api/security/certificates
/api/snapmirror/relationships
/api/snapmirror/policies
/api/cluster/software
/api/cluster/software/history
/api/storage/volumes/snapshots
/api/network/ip/
/api/svm/

UPDATE: I updated the NetApp module to 23.0.0 and still having the same problem.