{"id":19177214,"url":"https://github.com/mahdi22/linux_joindomain","last_synced_at":"2025-07-11T22:05:39.630Z","repository":{"id":40386420,"uuid":"298584793","full_name":"mahdi22/linux_joindomain","owner":"mahdi22","description":"Role Ansible for automatically Join Domain Active Directory using sssd for Linux RHEL/CentOS 7 and 8, Debian , Ubuntu and samba winbind for RHEL/CentOS 6","archived":false,"fork":false,"pushed_at":"2024-07-20T21:58:58.000Z","size":31,"stargazers_count":39,"open_issues_count":0,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T08:47:04.478Z","etag":null,"topics":["active-directory","ansible","ansible-role","centos","debian","linux","realm","redhat","role-ansible","samba","sssd","ubuntu","winbind"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/mahdi22/linux_joindomain","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahdi22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-25T13:44:49.000Z","updated_at":"2025-04-06T05:24:48.000Z","dependencies_parsed_at":"2024-07-20T23:04:31.929Z","dependency_job_id":null,"html_url":"https://github.com/mahdi22/linux_joindomain","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mahdi22/linux_joindomain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Flinux_joindomain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Flinux_joindomain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Flinux_joindomain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Flinux_joindomain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahdi22","download_url":"https://codeload.github.com/mahdi22/linux_joindomain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Flinux_joindomain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904294,"owners_count":23681172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","ansible","ansible-role","centos","debian","linux","realm","redhat","role-ansible","samba","sssd","ubuntu","winbind"],"created_at":"2024-11-09T10:32:32.264Z","updated_at":"2025-07-11T22:05:39.582Z","avatar_url":"https://github.com/mahdi22.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003elinux_joindomain\u003c/h1\u003e\nThis 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 24 22 20 18 16 and Debian 10 9\n\n# Requirements\n\n- source.list configured and updated for debian servers\n- Ansible \u003e= 2.7\n\n# Installation\n\nansible-galaxy install mahdi22.linux_joindomain\n\n# Role Configuration\n\nfile: defaults/main.yml\n```yaml\n#set this variable to True if the managed hosts are bihind a web proxy... default False\nuse_proxy: False\n```\n```yaml\nproxy_env: []\n#Set environmenet variable for web proxy sexample:\n#  proxy_env:\n#  http_proxy: http://proxy.local:8080/\n#  https_proxy: http://proxy.local:8080/\n```\n\n# Role Variables\n\nfile: vars/main.yml\n```yaml\nJoin_User: ADMDOMAIN # Replace ADMDOMAIN with the username domain admin\nDomainName: linuxlab.local # Replace linuxlab.local with the domainname\nJoin_User_Pass: admdomainpassword # Replace admdomainpassword with the username domain admin password\nrealm: LINUXLAB.LOCAL # replace this value with by Domaine Name\nserver: linuxlab.local # replace this value with by active directory server\n```\nfile: vars/RedHat-6.yml\n```yaml\nworkgroup: LAB # replace this value with by WORKGROUP\nkdc:\n    - kerberos-1.linuxlab.local:88 # replace this value with by firt Kerberos server name\n    - kerberos-2.linuxlab.local:88 # replace this value with by second Kerberos server name\n    - kerberos-3.linuxlab.local:88 # replace this value with by third Kerberos server name\ndomain_realms:\n    - .linuxlab.local # replace this value with by domaine name\n    - linuxlab.local # replace this value with by domaine name\nfallback_homedir: '/home/%u'\nuse_fully_qualified_names: False\n```\n    \n # Example Playbook\n```yaml\n- hosts: servers\n  roles:\n    - role: mahdi22.linux_joindomain\n      become: yes\n```\n\n## Testing\n\nThis role is tested on Linux distributions:\n\n- RHEL/CentOS 8\n- RHEL/CentOS 7\n- RHEL/CentOS 6\n- Debian 10\n- Debian 9\n- Debian 8\n- Ubuntu 24.04\n- Ubuntu 22.04\n- Ubuntu 20.04\n- Ubuntu 19.10\n- Ubuntu 18.04\n- Ubuntu 16.04\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Flinux_joindomain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahdi22%2Flinux_joindomain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Flinux_joindomain/lists"}