Hello Ansible community!
I’m just getting started with Ansible, and seem to be not understanding why this happens.
My playbook
- name: bundle install
command: “bundle install”
args:
chdir: “~/ai_grading_production/”
I get the error msg: [Errno 2] No such file or directory when using bundle
When I actually specify the full path it works
command: “/home/ubuntu/.rvm/gems/ruby-2.2.2/wrappers/bundle install”
When I use the shell module it error with this message
stderr: /bin/sh: 1: bundle: not found
Does anyone know why I have to specify the full path to use the bundle command. And how can I fix? Thank you!