diff --git a/tasks/configure.yml b/tasks/configure.yml index 43e090d..07f4bb2 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -28,7 +28,7 @@ register: which_puppetserver - name: Find puppetserver command with where - shell: "whereis puppetserver | awk 'BEGIN {FS=\": \"} {print($2)}'" + shell: "whereis -b puppetserver | awk 'BEGIN {FS=\": \"} {print($2)}'" register: which_puppetserver when: which_puppetserver.stdout == "" @@ -50,7 +50,7 @@ msg: "Puppet command: '{{ which_puppet.stdout }}'" - name: Find puppet command with where - shell: "whereis puppet | awk 'BEGIN {FS=\" \"} {print($2)}'" + shell: "whereis -b puppet | awk 'BEGIN {FS=\" \"} {print($2)}'" register: which_puppet when: which_puppet.stdout == ""