From e82701e28753fc4349205699ceedb135cd4725d7 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 24 Oct 2022 12:59:29 +0300 Subject: [PATCH] fix variable name --- tasks/configure.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index f0301d5..4de29f4 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -17,10 +17,10 @@ - not puppet_agent.stat.isdir # Not found expected path trying to find with the command which -- name: Find puppet agent +- name: Find puppet agent with which command shell: which puppet register: puppet_which - failed_when: puppet_script.rc == 127 + failed_when: puppet_which.rc == 127 when: - not puppet_agent_cmd @@ -46,7 +46,7 @@ - puppet_which_stat.stat.executable # Not found from command which trying to find with the command whereis -- name: Find puppet agent with whereis +- name: Find puppet agent with whereis command shell: "whereis -b puppet | awk 'BEGIN {FS=\": \"} {print($2)}'" register: puppet_whereis failed_when: puppet_whereis.rc == 127