- source.list configured and updated for debian servers
- Ansible >= 2.7
ansible-galaxy install mahdi22.linux_joindomain
file: defaults/main.yml
#set this variable to True if the managed hosts are bihind a web proxy... default False
use_proxy: False
proxy_env: []
#Set environmenet variable for web proxy sexample:
# proxy_env:
# http_proxy: http://proxy.local:8080/
# https_proxy: http://proxy.local:8080/
file: vars/main.yml
Join_User: ADMDOMAIN # Replace ADMDOMAIN with the username domain admin
DomainName: linuxlab.local # Replace linuxlab.local with the domainname
Join_User_Pass: admdomainpassword # Replace admdomainpassword with the username domain admin password
realm: LINUXLAB.LOCAL # replace this value with by Domaine Name
server: linuxlab.local # replace this value with by active directory server
file: vars/RedHat-6.yml
workgroup: LAB # replace this value with by WORKGROUP
kdc:
- kerberos-1.linuxlab.local:88 # replace this value with by firt Kerberos server name
- kerberos-2.linuxlab.local:88 # replace this value with by second Kerberos server name
- kerberos-3.linuxlab.local:88 # replace this value with by third Kerberos server name
domain_realms:
- .linuxlab.local # replace this value with by domaine name
- linuxlab.local # replace this value with by domaine name
fallback_homedir: '/home/%u'
use_fully_qualified_names: False
- hosts: servers
roles:
- role: mahdi22.linux_joindomain
become: yes
This role is tested on Linux distributions:
- RHEL/CentOS 8
- RHEL/CentOS 7
- RHEL/CentOS 6
- Debian 10
- Debian 9
- Debian 8
- Ubuntu 24.04
- Ubuntu 22.04
- Ubuntu 20.04
- Ubuntu 19.10
- Ubuntu 18.04
- Ubuntu 16.04