From 141c44fe5b9ec9b9b2443435bee06b97d858c4ba Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Oct 11 2024 11:46:39 +0000 Subject: [ipa/server] Remove the replication agreement before installing replica The replica install will fail otherwise. Signed-off-by: Michal Konecny --- diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 5d6d397..b191e8c 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