From f5ae5a017f758566bf29fef6423773b5a56fdd64 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Oct 07 2024 12:48:21 +0000 Subject: [ipa/server] Save directly the value of the check Signed-off-by: Michal Konecny --- diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 206dc42..e2932ed 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: