From 405c6a495386591ee697af7d81c6996ded649c17 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Thu, 16 Nov 2023 13:56:55 +0100 Subject: [PATCH] [IPA] Clean client installation before running replica on RHEL 9 On RHEL9 ipa-replica-install fails if there is already client installed with "Your system is partly configured." To prevent this we need to uninstall the existing installation before trying to do replica. Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 99d75f114d..6919eb7d19 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -172,6 +172,14 @@ /root/ipa_replica_{{inventory_hostname}}.gpg when: ansible_distribution_major_version|int < 8 + # The ipa-client-install makes the ipa-replica-install fail + # on RHEL 9 with: "Your system is partly configured." + # This will clean the previous installation and allows + # the replica to be deployed. + - name: clean client installation + command: ipa-server-install --uninstall + when: ansible_distribution_major_version|int >= 9 + - name: deploy replica command: ipa-replica-install --setup-ca