From 1f71da5959f7351546b51a13bbf78f68b2a50a67 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 24 Oct 2022 13:32:01 +0300 Subject: [PATCH] Add is defined --- tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index c455f14..8c00eb8 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -45,7 +45,7 @@ set_fact: puppet_agent_cmd: "{{ puppet_which.stdout }}" when: - - puppet_which_stat + - puppet_which_stat is defined - puppet_which_stat.stat.exists - not puppet_which_stat.stat.isdir - puppet_which_stat.stat.executable @@ -75,7 +75,7 @@ set_fact: puppet_agent_cmd: "{{ puppet_whereis.stdout }}" when: - - puppet_whereis_stat + - puppet_whereis_stat is defined - puppet_whereis_stat.stat.exists - not puppet_whereis_stat.stat.isdir - puppet_whereis_stat.stat.executable