From f7a8e2ecb15a81c211b7e09d06bdedc6f030b40f Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Fri, 11 Oct 2024 12:21:22 +0200 Subject: [PATCH] [ipa/server] Run the confirmation dialog for every machine Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index cfdcb4e0a4..0760234068 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -106,17 +106,14 @@ - name: ask admin if they are ok reinstalling this ipa server replica ansible.builtin.pause: - prompt: "Do you want to reinstall replicas for all replica servers missing /var/log/ipainstall.log (this indicates that the ipa-replica-install wasn't run yet)? (yes/no)" + prompt: "Do you want to reinstall replica for {{ item }}? (yes/no)" register: confirm_replica + when: not check_replica.stat.exists + with_items: "{{ play_hosts }}" tags: - ipa/server - config -- name: save output for other hosts - ansible.builtin.set_fact: - run_once: true - confirm_replica: "{{ confirm_replica.user_input }}" - - name: configure replication block: # The ipa-client-install makes the ipa-replica-install fail