- Ansible >= 2.6
- Active Directory Service-User
- Configured NTP-Client
- DNS configuration and correct entries
ansible-galaxy install EddyH85.linux_domain_mgmt
file: defaults/main.yml The Role uses the following variables, which you should override in your playbook:
# Domain Information
join_domain: true # true/ flase - join or leave Active Directory Domain
DomainName: linuxlab.local # replace linuxlab.local with your Domainname
realm: LINUXLAB.LOCAL # replace this value with your Domainname in Uppercase
Join_OU: OU=Server,OU=Germany,DC=linuxlab,DC=local # replace this Value with your LDAP path
# Credentials
Join_User: ADMDOMAIN
Join_User_Pass: admdomainpassword
# Permissions
PermitAdminUsers: Administrator # set here your administrative Users comma separates
PermitAdminGroups: LinuxAdmins # set here your administrative Groups comma separates
---
- hosts: lx64*
gather_facts: yes
become: true
roles:
- EddyH85.linux_domain_mgmt
vars:
Join_User: tu-adjoin
DomainName: linuxlab.de
Join_User_Pass: Passw0rd
realm: LINUXLAB.DE
Join_OU: OU=Server,OU=Germany,OU=Linuxlab,DC=linuxlab,DC=de
Join_User: ServiceUser
Join_User_Pass: ServiceUserPWD
PermitAdminUsers: Administrator
PermitAdminGroups: D_LINUX_ADMINs
join_domain: true
This role is tested on Linux distributions:
- (open)SUSE 11-15
- RHEL/CentOS 7-9
- Debian 8-10
- Ubuntu LTS 16.04, 18.04, 20.04 22.04