James Booth

1 minute read


So far, I’ve been keeping separate inventories for different servers based on their role (Fileserver, apps server, etc.). But every time a server is added or changed, I have to manually edit the inventory files - That goes against the name of automation!

To remedy this, I’ve written a simple python dynamic inventory script that searches AD for computers in a defined OU. And since all of my VMs are organised by role in separate OUs, I only have to update them in one place.

It’s available on my GitLab and a more comprehensive, up-to-date description is in the README.md (With examples!).

comments powered by Disqus