Used get-dc-info instead of rest-servers to get from "state": "undetermined" to "state": "ok"
From:
CLI:> vserver cifs domain discovered-servers show -vserver XYZ
Output:
Domain Name Type Preference DC-Name DC-Address Status
--------------- -------- ---------- --------------- --------------- ---------
xxxx yyyy yyyy nnnn nnnnn undetermined
- name: check access authentication to AD DC
To:
CLI:> vserver cifs domain discovered-servers show -vserver XYZ
Output:
Domain Name Type Preference DC-Name DC-Address Status
--------------- -------- ---------- --------------- --------------- ---------
xxxx yyyy yyyy nnnn nnnnn OK
playbook task:
- name: check access authentication to AD DC
netapp.ontap.na_ontap_rest_cli:
command: 'vserver/services/access-check/authentication/get-dc-info'
verb: 'POST'
body: {vserver: "{{ vserver_name }}"}
<<: *login
register: result_cifs_check_access