[IPA] Clean client installation before running replica on RHEL 9
On RHEL9 ipa-replica-install fails if there is already client installed with "Your system is partly configured." To prevent this we need to uninstall the existing installation before trying to do replica. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
84c25cad71
commit
405c6a4953
1 changed files with 8 additions and 0 deletions
|
@ -172,6 +172,14 @@
|
||||||
/root/ipa_replica_{{inventory_hostname}}.gpg
|
/root/ipa_replica_{{inventory_hostname}}.gpg
|
||||||
when: ansible_distribution_major_version|int < 8
|
when: ansible_distribution_major_version|int < 8
|
||||||
|
|
||||||
|
# The ipa-client-install makes the ipa-replica-install fail
|
||||||
|
# on RHEL 9 with: "Your system is partly configured."
|
||||||
|
# This will clean the previous installation and allows
|
||||||
|
# the replica to be deployed.
|
||||||
|
- name: clean client installation
|
||||||
|
command: ipa-server-install --uninstall
|
||||||
|
when: ansible_distribution_major_version|int >= 9
|
||||||
|
|
||||||
- name: deploy replica
|
- name: deploy replica
|
||||||
command: ipa-replica-install
|
command: ipa-replica-install
|
||||||
--setup-ca
|
--setup-ca
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue