update whereis for binaries

This commit is contained in:
Antonio J. Delgado 2022-10-21 16:43:13 +03:00
parent 52d4c1b29a
commit 6537a5ffb5

View file

@ -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 == ""