From 141c44fe5b9ec9b9b2443435bee06b97d858c4ba Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Fri, 11 Oct 2024 13:44:34 +0200 Subject: [PATCH] [ipa/server] Remove the replication agreement before installing replica The replica install will fail otherwise. Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 5d6d397089..b191e8ccae 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -134,6 +134,12 @@ --unattended when: ansible_distribution_major_version|int >= 9 + # Replication agreement needs to be removed from ipa cluster + # before installing the replica + - name: Remove the replication agreement for the replica + command: "ipa server-del --force {{ ansible_hostname }}" + delegate_to: "{{ ipa_server }}" + - name: deploy replica command: ipa-replica-install --setup-ca