Re: [ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread LT
Thank you for clarification. On Monday, May 15, 2023 at 11:46:12 AM UTC-5 Matt Martz wrote: > You don't, you use the command or shell modules, and register the result, > potentially manipulating the result into the shape you want with a > subsequent `set_fact` task. > > On Mon, May 15, 2023 at

Re: [ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread Matt Martz
You don't, you use the command or shell modules, and register the result, potentially manipulating the result into the shape you want with a subsequent `set_fact` task. On Mon, May 15, 2023 at 11:15 AM LT wrote: > What is the correct way to use the lookup pipe filter on the remote host? > > On

Re: [ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread LT
What is the correct way to use the lookup pipe filter on the remote host? On Monday, May 15, 2023 at 8:47:24 AM UTC-5 Rowe, Walter P. (Fed) wrote: > My guess is that pipe is trying to run an executable named exactly this: > "/home/BreadPitt/program/executable > --version" vs passing the

Re: [ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread Dick Visser
Probably because the pipe lookup executes on the ansible controller, not on the controlled node: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/pipe_lookup.html#notes On Mon, 15 May 2023 at 15:41, LT wrote: > > I am trying to retrieve the version number of the installed

Re: [ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
My guess is that pipe is trying to run an executable named exactly this: "/home/BreadPitt/program/executable --version" vs passing the --version option to the executable. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On May 15, 2023, at 9:40 AM, LT

[ansible-project] The lookup pipe is returning a 127 error, even though the file exists and has all the required permissions.

2023-05-15 Thread LT
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: