The steps you mention seem fine to me Roberto, Detlev has detailed an alternative.
If you lose a client and need to rebuild (i.e. you didn't get chance to run the "--uninstall" option) then you can also just delete the host entry from IPA through the web gui or ipa command line before running the ipa-client-install (join) command.
When I have issues with clients (very infrequent and I have some 5000 clients) I find that running the "--uninstall" and then the install (steps 1 and 3) fix most issues without having to look into them (blind fix for the time wary!)
Regards
Angus
From: Detlev Habicht via FreeIPA-users <freeipa-users@lists.fedorahosted.org> Sent: 04 December 2020 11:59 To: FreeIPA users list <freeipa-users@lists.fedorahosted.org> Cc: Detlev Habicht <detlev.habicht@ims.uni-hannover.de> Subject: [Freeipa-users] Re: Reinstalling client's OS
Hi,
you can reinstall a client with something like this: