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
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.