Skip to content

This Ansible project automates the process of joining both Ubuntu and Windows 11 machines to an Active Directory domain. While Windows natively supports domain joining with ease, Linux requires multiple steps to achieve the same result. This approach simplifies and streamlines that otherwise complex process.

Notifications You must be signed in to change notification settings

solaconsay/AnsibleADJoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Joining Linux and Windows Machines to Active Directory using Ansible

This Ansible project automates the process of joining Ubuntu and Windows 11 machines to an Active Directory (AD) domain. While Windows supports domain joining natively, Linux requires multiple steps. This playbook simplifies and streamlines the process.


πŸ›  Test Environment Setup

  • Configuration files:

    • .ssh/config
    • inventory.ini
    • ansible.cfg (Ensures ansible_default_ipv4.address works properly by preventing fact-gathering timeouts.)
  • Windows Preparation:

    • Configured WinRM for Ansible control over Windows.

πŸ“ Playbook & Implementation

  • playbook.yaml (Defines tasks for joining machines to AD.)
  • Customized the playbook for automation efficiency.

πŸš€ Running the Playbook & Verification

  • Successfully added:
    • Windows11_NewDeploy β†’ sherwin.local domain
    • TestServer and WebServer β†’ sherwin.local domain
  • Verified domain connection and machine status.

This project ensures a seamless, automated approach to domain joining across both Linux and Windows environments using Ansible. πŸš€

About

This Ansible project automates the process of joining both Ubuntu and Windows 11 machines to an Active Directory domain. While Windows natively supports domain joining with ease, Linux requires multiple steps to achieve the same result. This approach simplifies and streamlines that otherwise complex process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published