On Wednesday, 26 August 2015 11:46:43 UTC+1, Anthony Green wrote:
>
> This task
>
> - name: Install Ruby
> command: /usr/local/bin/rbenv install 2.2.3
>
> fails with a
>
> stderr: rbenv: no such command `install
>
> message
>
> I've tried shell and raw as well and I get the same message.
>
> Any ideas on a fix?
>
Eventually settled on
- name: Install Ruby
shell: 'export PATH=/usr/local/bin:$PATH; /usr/local/bin/rbenv install
2.2.3'
args:
creates: /Users/jenkins/.rbenv/versions/2.2.3
become: yes
become_user: jenkins
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/64ea4ad9-90a7-4343-888f-792436273857%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.