From 40136bda425f4651559309c7ded130df2026bbad Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Mon, 31 Mar 2025 15:16:13 +0200 Subject: [PATCH] [ipa/server] Don't ask for reinstall in some cases Don't ask for reinstall when this is master node or the install log is already created. --- roles/ipa/server/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 9e0b9d1ac2..3a00470cae 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -122,9 +122,10 @@ - name: Ask admin if they are OK reinstalling this ipa server replica ansible.builtin.pause: - prompt: "Do you want to reinstall replica for {{ item }} (ignored for master node and any node with /var/log/ipainstall.log)? (yes/no)" + prompt: "Do you want to reinstall replica for {{ item }}? (yes/no)" register: confirm_replica with_items: "{{ play_hosts }}" + when: not ipa_initial or not check_replica.stat.exists tags: - ipa/server - config -- 2.49.0