Deploy in ansible of Samba, LDAP, Kerberos, Winbind and SSSD for to connect with the Active Directory and sync the users with Windows (This deploy be do in Ubuntu)
Links of resources of references:
https://www.tecmint.com/install-samba4-active-directory-ubuntu/ https://www.tecmint.com/manage-samba4-active-directory-linux-command-line/ https://www.tecmint.com/manage-samba4-ad-from-windows-via-rsat/ https://www.tecmint.com/integrate-ubuntu-to-samba4-ad-dc-with-sssd-and-realm/