From a3112de954722081f8e297ea54c7929c902573a9 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Thu, 16 Nov 2023 12:39:36 +0100 Subject: [PATCH] [IPA] Remove creates parameter from deploy replica The deploy replica step wasn't executed because it's checking if `/etc/ipa/default.conf` exists. Remove that and use only the return code from ipactl to check if the replication is done. Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 11cdb94f75..a7ba0349ab 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -170,8 +170,11 @@ --log-file=/var/log/ipainstall.log --dirsrv-config-file=/root/ldif/replica-install.ldif /root/ipa_replica_{{inventory_hostname}}.gpg - creates=/etc/ipa/default.conf when: ansible_distribution_major_version|int < 8 + when: not ipa_initial and replication_status.rc > 0 + tags: + - ipa/server + - config - name: deploy replica command: ipa-replica-install @@ -190,7 +193,6 @@ --domain={{ipa_realm}} --server=ipa01{{ env_suffix }}.iad2.fedoraproject.org --dirsrv-config-file=/root/ldif/replica-install.ldif - creates=/etc/ipa/default.conf when: ansible_distribution_major_version|int >= 8 when: not ipa_initial and replication_status.rc > 0 tags: