win_domain: The specified argument 'InstallDNS' was not recognized

105 views
Skip to first unread message

Ali Khawaja

unread,
May 27, 2018, 7:49:14 AM5/27/18
to Ansible Project
Hi, 

i am creating a domain controller using win_domain.  when i ran the script again, its failing every time on win_domain command with the following error message.

TASK [Promote server as Domain Controller] ***********************************************************************************************************************************************************************************fatal: [i-07fd743a2ee03efac]: FAILED! => {"changed": false, "module_stderr": "Exception calling \"Run\" with \"1\" argument(s): \"Exception calling \"Invoke\" with \r\n\"0\" argument(s): \"The running command stopped because the preference variable \r\n\"ErrorActionPreference\" or common parameter is set to Stop: The specified \r\nargument 'InstallDNS' was not recognized.\r\n\"\"\r\nAt line:65 char:5\r\n+     $output = $entrypoint.Run($payload)\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordE \r\n   xception\r\n    + FullyQualifiedErrorId : ScriptMethodRuntimeException\r\n \r\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
Reply all
Reply to author
Forward
0 new messages