Been using Ansible module na_ontap_file_directory_policy to apply AD users/groups to a share’s folders. But since that is being deprecated and doesn’t seem to work with Rest anyway want to replace it.
The best solution I came up with to replace na_ontap_file_directory_policy seemed to be to use na_ontap_restit to make a call to ontap:/protocols/file-security/permissions/{svm.uuid}/{path}/acl. There is an issue with that:
- When I run my test playbook, the restit call returns a “duplicate entry” error. However, it still adds the requested SID correctly.
- I haven’t been able to determine if something in the task is the issue or there is a problem with either the na_ontap_restit call or the Rest call.
- Short term we can ignore the error but I don't want to do that.
Is there another better Ontap module we should use? Or is there an issue with the format of the body or somewhere else in the task?
I've attached a file containing the task and error..
Netapp Ansible collection has been updated from 22.11 to 22.12 with no improvement.