The error message says
"/bin/sh: grouplnfo: command not found"
I is capitalized in groupInfo.
@Dick Visser was trying to point that out I think.

On Mon, Feb 6, 2023 at 1:22 AM Todd Lewis <[email protected]> wrote:

> You say "Path is same set from putty as well as from shell module in
> ansible". Convince us. Run the following through putty and then again
> through the ansible.builtin.shell module.
>    echo $PATH
>    which groupinfo
>
> On Saturday, February 4, 2023 at 8:01:10 PM UTC-5 [email protected]
> wrote:
>
>>  am running the ansible playbook through AWX and its getting failed with
>> the subjected error. I am able to run shell command on RHEL 7 from putty
>> and its executed successfully. Few of the command from shell module i am
>> able to run successfull same command is not running from ansible shell
>> module
>> Path is same set from putty as well as from shell module in ansible
>> red hat RHEL 7.9
>>
>> command :- pwd
>> run from putty as well as shell moduel from ansible
>> command :- groupInfo
>> run from putty but getting error from ansible shell module when path and
>> env is set
>>
>> fatal: [localhost -> 192.168.0.101]: FAILED! => {"changed": t rue, "cmd":
>> "groupInfo", "delta": "0:00:00.082693", "end": "2023 -02-03
>> 22:14:37.486677", "msg": "non-zero return code", "rc": 12 7, "start":
>> "2023-02-03 22:14:37.403984", "stderr": "/bin/sh: groupInfo: command not
>> found", "stderr_lines": ["/bin/sh: groupInf o: command not found"],
>> "stdout": "", "stdout_lines": []}
>>
> --
> 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/249028d1-9ee3-4f94-a64a-ce2427973f29n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/249028d1-9ee3-4f94-a64a-ce2427973f29n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAG7s96XuGH%3DQin0k%3DdO_3hx-2dpYKPZ4Xuptvi54DCJrvxJpwQ%40mail.gmail.com.

Reply via email to