I am trying to retrieve the version number of the installed executable. The
complete path exists, the file has executable permissions, but I am
encountering a 127 error, indicating that the file does not exist. Have I
missed something?
*Here is the code that I have:*
- set_fact: remote_version: "{{ lookup('ansible.builtin.pipe', '/home/' +
username + '/program/executable_file' + ' --version') }}"
*The error that I am getting:*fatal: [xxx.yyy.zzz.fff]: FAILED! => {"msg":
"An unhandled exception occurred while running the lookup plugin
'ansible.builtin.pipe'. Error was a <class 'ansible.errors.AnsibleError'>,
original message: lookup_plugin.pipe(/home/BreadPitt/program/executable
--version) returned 127. lookup_plugin.pipe(
/home/BreadPitt/program/executable --version) returned 127"}
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/808be77b-2253-48b2-9664-9ad16f8f3ab2n%40googlegroups.com.