pytoccaz / pytoccaz.utils / 1.4.0 / lookup / binary_path Returns a system executable path on the Ansible controller | "added in version" 1.3.0 of pytoccaz.utils" Authors: Olivier Bernard (@pytoccaz)pytoccaz.utils.binary_path (1.4.0) — lookup
Install with ansible-galaxy collection install pytoccaz.utils:==1.4.0
collections: - name: pytoccaz.utils version: 1.4.0
Returns the absolute path of a system executable within the Ansible controller C($PATH)
- name: Find python3 in PATH ansible.builtin.debug: var: lookup('pytoccaz.utils.binary_path', binary='python3')
binary: description: The name of the executable to find. type: str
_raw: description: A one-element list containing the path when the executable is found, else an empty string elements: str type: list