I try to migrate my role creation to REST but struggle with DEFAULT permissions.
- name: Create user role REST in ONTAP 9.11.1. netapp.ontap.na_ontap_user_role: <<: *login state: present privileges: - path: DEFAULT access: readonly - path: 'snapmirror' access: all name: test-role
It will be created the way I want, but always gives me warning. Result on ONTAP command line:
`Cluster::> security login role show -role test-role
Role Command/ Access
Vserver Name Directory Query Level
Cluster test-role DEFAULT readonly
snapmirror all`
First execution of the playbook:
[WARNING]: Create operation also affected additional related commands: [{'path': 'snapmirror', 'access': 'all'}]
Second execution of the playbook:
[WARNING]: modify is required, desired: [{'path': 'DEFAULT', 'access': 'readonly'}, {'path': 'snapmirror', 'access': 'all'}] and new current: [{'path': 'snapmirror', 'access': 'all'}] changed: [Cluster]
Is this a code bug? Can I do anything to avoid the warning?