[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 <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-11-16 12:39:36 +01:00
parent 0969fed462
commit a3112de954

View file

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