update whereis for binaries

This commit is contained in:
Antonio J. Delgado 2022-10-21 16:43:10 +03:00
parent 8ab2629423
commit df58f265d7

View file

@ -8,7 +8,7 @@
msg: "{{ which_puppet }}"
- name: Obtain path to puppet binary using whereis
shell: "whereis puppet | awk 'BEGIN {FS=\" \"} {print($2)}'"
shell: "whereis -b puppet | awk 'BEGIN {FS=\" \"} {print($2)}'"
register: which_puppet
when: which_puppet.stdout == ""