Install the RSAT role on your ansible target and that'll take care of your 
issue.

On Monday, February 3, 2020 at 8:03:08 PM UTC-5, Craig Simon wrote:
>
> Hey all,
>
> i've been using Ansibe with Linux for years, but now I have a need to use 
> it to build out some Windows boxes and I am running into some issues.  So 
> far I am able to instal the AD-DS features and create my domain all 
> properly, but I am unable to create any groups in the new domain that I am 
> setting up.  When I try I get the error:
>
> TASK [Gathering Facts] 
> ***********************************************************************************************************************************************************************
> ok: [XX.XX.XX.XX]
>
> TASK [ping test] 
> *****************************************************************************************************************************************************************************
> ok: [XX.XX.XX.XX]
>
> TASK [create the Mission domain group] 
> *******************************************************************************************************************************************************
> fatal: [XX.XX.XX.XX]: FAILED! => {"changed": false, "created": false, 
> "msg": "failed to retrieve initial details for group Mission: Unable to 
> contact the server. This may be because this server does not exist, it is 
> currently down, or it does not have the Active Directory Web Services 
> running."}
>
> PLAY RECAP 
> ***********************************************************************************************************************************************************************************
> XX.XX.XX.XX                : ok=2    changed=0    unreachable=0    
> failed=1    skipped=0    rescued=0    ignored=0
>
> I can't figure out what is causing this issue.  My reading of the 
> documentation only says 
>
> "This must be run on a host that has the ActiveDirectory powershell 
> module installed."
>
> I have tested that this is the case by RDPing into the host and performing 
> an "Import-Module -Name ActiveDirectory" and the module does import.
>
> The target is a windows 2016 server running in AWS, my Ansible workstation 
> is a Mac running Catalina with Ansible installed in a venv via PIP.
>
> Appreciate the help!
> Thanks
> Craig
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/07da965f-e726-47ba-a2f2-5c2e7c91034c%40googlegroups.com.

Reply via email to