We do exactly that: We run ansible in pull mode with AD as inventory.
Maybe you can take a look at the dynamic inventory script we use:
(Because it is used for ansible-pull, it will only return the current host,
but it should give you some ideas.)
Am Dienstag, 13. Februar 2018 02:50:31 UTC+1 schrieb Aaron K:
> Does anyone have code that can pull a dynamic inventory from list of AD
> OUs? Want to use the windows_update module to patch our servers only in
> specific OUs.
> Maybe I missed it, but I don't see Windows Active Directory inventory
> here: https://github.com/ansible/ansible/tree/devel/contrib/inventory
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 post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.