Domain Join Issues - UCS5.0-8 - Automation via. Ansible

Hello,
I’ve got a UCS5.0 with a working domain, but I can’t join ubuntu (20.04) clients via univention-domain-join-cli.
I installed all the required packages and tried to join, but every time it stucks at this point:

Warning: /etc/ldap/ldap.conf already exists.
Warning: /etc/krb5.conf already exists.
Created a backup of all configuration files, that will be modified at '/var/univention-backup/20240820085014_domain-join'.
Getting the DN of the Administrator
Downloading the UCS root certificate to /etc/univention/ssl/ucsCA/CAcert.pem
Adding the UCS root certificate to the certificate store
Updating old LDAP entry for this machine on the UCS DC
Writing /etc/ldap/ldap.conf
Writing /etc/machine.secret
Writing /etc/sssd/sssd.conf
Configuring auth config profile for sssd

When I press the enter key, it moves on and the domain join was successful, but i can’t use that for our automation via. ansible. Can anyone help me?
I can’t find any topic to this.
The GUI works, but we have some systems without graphical. I found this 1. Integration of Ubuntu clients into a UCS domain — Univention Corporate Server - Extended domain services documentation but its to old.

Are there any instructions for joining ubuntu 20.04 systems via. cli (or manually) and second question, is there something for debian 11/12 systems? Thank you!

Hi,

look here. The linked script should give you an idea on what to do or embed it in your playbook.

Mastodon