[IPA] Ignore errors when determining replication status

The ipactl status returns non 0 code when the IPA server is not set yet. We need
to ignore the error code when checking that.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-11-16 12:22:01 +01:00
parent 3e349c80ec
commit 0969fed462

View file

@ -118,6 +118,7 @@
- name: determine whether we need to set up replication
shell: ipactl status
register: replication_status
ignore_errors: true
tags:
- ipa/server
- config