[ipa/server] Remove the when condition from pause

It seems that the pause module skips every host if the first one is skipped by
when condition.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-10-11 12:45:13 +02:00
parent f7a8e2ecb1
commit 76c167eba6

View file

@ -108,7 +108,6 @@
ansible.builtin.pause:
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
@ -146,7 +145,7 @@
when:
- not ipa_initial
- not check_replica.stat.exists
- confirm_replica | default('no') | bool
- confirm_replica.user_input | default('no') | bool
tags:
- ipa/server
- config