[ipa/server] Remove the replication agreement before installing replica

The replica install will fail otherwise.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-10-11 13:44:34 +02:00
parent 7c296fed36
commit 141c44fe5b

View file

@ -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