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