In this video, I demonstrate how to configure a static IP address on a Windows operating system and seamlessly join it to an Active Directory domain using Ansible automation. This process is ideal for automating Windows deployments in enterprise environments, ensuring consistent configuration and reducing manual errors. Whether you're setting up new systems or rebuilding existing ones, this method will save you time and effort.
During the video, I encountered a major problem because I forgot to use the --limit option when running the playbook — which unintentionally applied changes to unintended hosts. I walk you through the troubleshooting process I used to identify and fix the issue. To prevent such mistakes in the future, I also show how I implemented an Ansible task that forces the user to specify --limit before executing the playbook, making the automation process safer and more controlled.
🔹 Topics Covered:
✔ Setting a static IP address on Windows with Ansible
✔ Joining a Windows machine to an Active Directory domain
✔ Troubleshooting Ansible mistakes (missing --limit)
✔ Implementing safeguards in Ansible playbooks
✔ Best practices for Windows automation with Ansible
💬 Have questions or feedback? Drop a comment below!
👍 Like & Subscribe for more Ansible & Windows automation tutorials!
The playbook is available here :
https://github.com/AdrianSorinIoja/an...