I have tried with groupinfo issue is same On Sat, Feb 4, 2023 at 10:10 PM <[email protected]> wrote:
> [email protected] > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/topics> > Google > Groups > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview> > Topic digest > View all topics > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/topics> > > - error command not found in RHEL server and few are working > <#m_-3384062030831821772_group_thread_0> - 2 Updates > > error command not found in RHEL server and few are working > <http://groups.google.com/group/ansible-project/t/99b3d518af5f6911?utm_source=digest&utm_medium=email> > anish kumar <[email protected]>: Feb 03 08:37PM -0800 > > I 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: gr oupInfo: command not > found", "stderr_lines": ["/bin/sh: groupInf o: command not found"], > "stdout": "", "stdout_lines": []} > Dick Visser <[email protected]>: Feb 04 07:56AM +0100 > > > command :- groupinfo > > > > run from putty but getting error from ansible shell module when path and > > env is set > > > Not really, see below > > > > "2023-02-03 22:14:37.403984", "stderr": "/bin/sh: gr oupInfo: command not > > found", "stderr_lines": ["/bin/sh: groupInf o: command not found"], > > "stdout": "", "stdout_lines": []} > > You misspelled the command > > > -- > > -- > Sent from Gmail Mobile > Back to top <#m_-3384062030831821772_digest_top> > You received this digest because you're subscribed to updates for this > group. You can change your settings on the group membership page > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/ansible-project/join> > . > To unsubscribe from this group and stop receiving emails from it send an > email to [email protected]. > -- 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/CADae5K-uZqdhKkE5h%2BPVxdH2jtOMZHgTxdVKfWdiJp8zZDTqDw%40mail.gmail.com.
