Unable to execute command using command module: path not found

,

I am trying to execute a playbook from AWX. The playbook is actually executing a ruby script and awscli command. For ruby it is showing gem not found error even though its working if executing directoy in docker container. For awscli it is throwing profile not found error. I am having profile in /root/.aws. Please help

Thanks
Sreenivas