Linux Domain Join Script

I needed to domain join Linux servers, so I wrote up this Ansible script. Should work with Cent/RHEL/Ubuntu.

How to Configure in Morpheus

  1. Add Ansible Integration
  2. Create Join Domain Task
  3. Create Linux Domain Workflow
  4. Associate Linux Domain Workflow to Domain
  5. Prosper!

Requirements

  1. Cypher Configuration
    a. Name of the cypher object is matches the domain name.
    Example: “secret/mydomain.com”
    b. The contents of the cypher are as follows (Admin group is optional)
    {
    "username":"userSAMAccount",
    "password":"MyPassword",
    "admin":"ADGroup@mydomain.com"
    }
    
1 Like