linux_joindomain

ansible-linux-join-domain

This is an ansible role to automaticaly join Linux Machine CentOS and Redhat using sssd, realm, samba and winbind. This role is tested on RedHat/CentOS 7.x, 8.x 6.6 and Ubuntu 20 18 16 and Debian 10 9

Requirements

  • source.list configured and updated for debian servers
  • Ansible >= 2.7

Installation

ansible-galaxy install mahdi22.linux_joindomain

Role Configuration

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/

Role Variables

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

Example Playbook

- hosts: servers
  roles:
    - role: mahdi22.linux_joindomain
      become: yes
About

Join Domain Active Directory using sssd for RedHat, CentOS, Debian, Ubuntu distributions and using samba winbind for Redhat/CentOS 6

Install
ansible-galaxy install sgargel/linux_joindomain
GitHub repository
License
Unknown
Downloads
32
Owner