From f5ae5a017f758566bf29fef6423773b5a56fdd64 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Mon, 7 Oct 2024 14:48:21 +0200 Subject: [PATCH] [ipa/server] Save directly the value of the check Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 206dc42cce..e2932edd02 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -106,7 +106,7 @@ - name: Saving /var/log/ipainstall.log check ansible.builtin.set_fact: - replica_check: replica_log + replica_check: replica_log.stat.exists tags: - ipa/server - config @@ -114,7 +114,7 @@ - name: ask admin if they are ok reinstalling this ipa server replica ansible.builtin.pause: prompt: "Looks like replica for {{ item }} should be reinstalled, are you sure you want to do that? (yes/no)" - when: "not ipa_initial and (not {{ hostvars[item]['replica_check'].stat.exists }})" + when: "not ipa_initial and (not {{ hostvars[item]['replica_check'] }})" register: input with_items: "{{ play_hosts }}" tags: