Posts

Showing posts from December, 2020

Ansible role based deployment for windows guest along with os customization, WinRM and AD integration

Image
 In enterprise level, just deploying the windows vm is always not enough. The vm need to connect AD to support enterprise logins and many guest os level changes needed like configuring DNS, NTP, adding multiple hard disks, applying the disk labels etc. Using ansible modules these steps can be done easily. Its always a good practice to write role based ansible playbooks and using tags so that when needed a specific role can be called using its respective tag. In this example we will perform the below tasks using ansible roles: VM Deployment Guest OS customization Windows Updates Software Upload Software Installation VM Deletion Lets go through the following example to understand how these requirements can be achieved: Each role consists of multiple tasks in it which will be performed sequentially. These roles will use specific ansible modules which are part of ansible collections . Under roles folder we have subfolders for each role which will have atleast 2 folders in it. tasks me