get first result from whereis

This commit is contained in:
Antonio J. Delgado 2022-10-21 21:22:41 +03:00
parent a0b4b08319
commit 8963ab4064

View file

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