Thanks for the reply. This is for machines on the network that are NOT 
joined to the domain yet, so they do not have a DNS entry.
I took the approach of running a win_shell task against the dhcp server and 
then using in-memory inventory with add_host to further configure the 
hosts.  
I think a better approach might be to use custom inventory script to query 
the windows dhcp server instead of using in-memory invenotry.  Anybody have 
experience writing custom inventory script querying a windows box?

On Thursday, March 21, 2019 at 7:28:27 AM UTC-7, Bob Harold wrote:
>
>
> On Wed, Mar 20, 2019 at 5:55 PM Mike V <mich...@gmail.com <javascript:>> 
> wrote:
>
>> Hi,
>> I want to add windows clients to an Active Directory domain.  The clients 
>> are getting IP addresses from dhcp and they are not in DNS.  Should I write 
>> a playbook to query the dhcp server with the known hostnames to generate an 
>> inventory file, and then write another playbook to add them to the domain?  
>> Any better approaches?
>>
>
> If Active Directory and the clients are configured properly, the Active 
> Directory DNS should be updated automatically.  I do not know the details.
>
> -- 
> Bob Harold
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to