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: https://github.com/ANTS-Framework/ants/blob/master/antslib/inventory/inventory_ad (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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3a835396-41c0-426c-bb0a-a8e2369611bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.