mirror of
https://github.com/de-it-krachten/ansible-role-adjoin
synced 2026-05-14 03:31:39 +00:00
No description
- Jinja 100%
# [1.10.0](https://github.com/de-it-krachten/ansible-role-adjoin/compare/v1.9.0...v1.10.0) (2026-05-11) ### Bug Fixes * Ensure proper nsswitch configuration ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-adjoin
Enrolls a Linux host into a Microsoft Active Directory Domain using Kerberos
Dependencies
Roles
None
Collections
None
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 26.04 LTS
- Fedora 43
- Fedora 441
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# AD realm
# adjoin_realm: example.com
# Command used for joing host to AD
adjoin_command: realm
# Kerberos Service Principal Name (SPN) to create (keytabs)
adjoin_spn: []
# adjoin_spn: [ nfs, cifs ]
# Configure AD connection using SSL/TLS
adjoin_tls: true
# Leave the AD realm before joining it
adjoin_leave: false
# Use AD provided UID/GID
adjoin_ldap_id_mapping: true
# SSSD template to use
adjoin_sssd_template: sssd.conf.j2
# Enforce specific order in /etc/nsswitch.conf
adjoin_nss:
passwd: "files sss systemd"
group: "files sss systemd"
defaults/family-Debian.yml
# Character to start values from
adjoin_nss_ljust: 18
# List of OS packages required
adjoin_packages:
- realmd
- libnss-sss
- libpam-sss
- sssd
- sssd-tools
- adcli
- samba-common-bin
- oddjob
- oddjob-mkhomedir
- packagekit
- krb5-user
defaults/family-RedHat.yml
# Character to start values from
adjoin_nss_ljust: 13
# List of OS packages required
adjoin_packages:
- sssd
- realmd
- oddjob
- oddjob-mkhomedir
- adcli
- samba-common
# - samba-common-tools
- krb5-workstation
- openldap-clients
# - policycoreutils-python
defaults/family-Suse.yml
# Character to start values from
adjoin_nss_ljust: 13
# List of OS packages required
adjoin_packages:
- krb5-client
- realmd
- adcli
- sssd
- sssd-ldap
- sssd-ad
- sssd-tools
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'adjoin'
hosts: all
become: 'yes'
vars:
molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
adjoin_password: test
adjoin_realm: example.com
adjoin_user: test
tasks:
- name: Include role 'adjoin'
ansible.builtin.include_role:
name: adjoin